Firestore query using an object element as parameter

后端 未结 4 622

i\'m using Firestore as my database in a project and i have a table that i need to do a query inside an object

{
   foo: "data",
   bar: "data&         


        
4条回答
  •  渐次进展
    2020-12-10 15:33

    Try ( change from 'Table' to 'TEST' )

    xptoCollection : AngularFirestoreCollection;
    
      constructor(private afs: AngularFirestore) { }
    
          this.xptoCollection = this.afs.collection('TEST', ref => {
            return ref.where('exObject.{dataToQuery}', '==', 'value');
          });
    

提交回复
热议问题