I am trying to query the following structure:
I need to find all the orders that has the path 'orders/stores{id1}' for example
I have tried the following code snippets:
return this.db.list(`orders`, ref => ref.child(`stores/id1`)).snapshotChanges();
return this.db.list(`orders`, ref => ref.child(`stores`).child(`id1`).snapshotChanges();
return this.db.list(`orders`, ref => ref.child(`stores`).equalTo('id1')).snapshotChanges();
But none have provided any results.
Should i restructure my data? Is there a way to query this?