1

how to check a specific data in realtime database as well as it checks in firestore ?

this.afs.collection('collection', ref => ref.where('data', "==", date
    )).snapshotChanges(.subscribe(res => {

I've try

this.database.list('collection', ref => ref.where

but, "Property 'where' does not exist on type 'Reference'."

0

1 Answer 1

0

I recommend checking out the AngularFire documentation on querying lists in the realtime database, and the Firebase documentation on ordering and filtering Realtime Database data in JavaScript which show that querying is done with:

this.database.list('collection', ref => ref.orderByChild("data").equalTo(date))
1
  • 1
    The link above is broken. The new link for querying lists in the rtdb is this one
    – EluciusFTW
    Commented May 10, 2023 at 6:06

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.