EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 448 forks source link

Info request: filter by multiple document ids #1645

Open rrr3da opened 4 years ago

rrr3da commented 4 years ago

Hello,

I can't find any specs related to the queries by multiple id, something like:

_ref.collection("collectionname").whereIn(FieldPath.documentId(), ids).get()

which is available in Android Firebase SDK.

How can it be translated to the .where(fieldPath, op, value) function?

Thank you

SergeyMell commented 3 years ago

You can use

ref.collection('collection_name').where('__name__', 'in', ids).get()

for this purpose. It should work