How to perform sql “LIKE” operation on firebase?

前端 未结 5 1398
别那么骄傲
别那么骄傲 2020-11-22 04:16

I am using firebase for data storage. The data structure is like this:

products:{
   product1:{
      name:\"chocolate\",
   }
   product2:{
      name:\"cho         


        
5条回答
  •  遇见更好的自我
    2020-11-22 04:44

    SQL"LIKE" operation on firebase is possible

    let node = await db.ref('yourPath').orderByChild('yourKey').startAt('!').endAt('SUBSTRING\uf8ff').once('value');
    

提交回复
热议问题