WHEREIN in Cloud Firestore Database

Do we have same as WHEREIN of MySQL in Firestore? If we don't have such option in Firestore, Then, How to handle it with NodeJS?

I hope I can get my answer soon.

Upvotes: 2

Views: 1222

Answers (1)

Tien Liang
Tien Liang

Reputation: 245

Firestore uses NoSQL (non-relational) instead of SQL.

You can fetch data from firestore using Node.js as specific in this doc.

There is currently no "IN" operator in firestore, so the only way to handle this is using forEach.

To understand more about JSON format and how to handle it in Node.js, you can read this.

Upvotes: 1

Related Questions