Closed
Description
[REQUIRED] Step 2: Describe your environment
- Operating System version: (any)
- Firebase SDK version:
11.8.0
- Firebase Product: Firestore
- Node.js version: (any)
- NPM version: (any)
[REQUIRED] Step 3: Describe the problem
For Firestore OR
queries, the Firebase reference docs link out to the Cloud Firestore reference docs, which have this code snippet: https://googleapis.dev/nodejs/firestore/latest/Filter.html#.or
The example uses a Filter
object. When I try to import that with const { getFirestore, Filter } = require('firebase-admin/firestore');
, I get this error:
Module '"firebase-admin/firestore"' has no exported member 'Filter'.
After checking the exports for firebase-admin/firestore
, it looks like the Filter
re-export is missing:
firebase-admin-node/src/firestore/index.ts
Lines 29 to 72 in 09c9ef6
Relevant Code:
const { getFirestore, Filter } = require('firebase-admin/firestore');