You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Firebase Function NodeJS, running on the emulator from Firebase CLI 7.16.1
Node.js version: 13.11.0
@google-cloud/firestore version: 3.7.2
firebase-admin version: 8.10.0
Steps to reproduce
const admin = require('firebase-admin');
const arr = ['id1', 'id2'];
const m = await db
.collection('media')
.where(admin.firestore.FieldPath.documentId(), 'in', arr)
.get();
Expected: able to query a list of document IDs in a single collection.
Actual:
Error: The corresponding value for FieldPath.documentId() must be a string or a DocumentReference.
at CollectionReference.validateReference (node_modules/@google-cloud/firestore/build/src/reference.js:1325:19)
at CollectionReference.where (node_modules/@google-cloud/firestore/build/src/reference.js:1038:26)
Does anyone know a workaround? Thanks! (edited several times for clarity)
Environment details
@google-cloud/firestoreversion: 3.7.2firebase-adminversion: 8.10.0Steps to reproduce
Expected: able to query a list of document IDs in a single collection.
Actual:
Does anyone know a workaround? Thanks! (edited several times for clarity)