Skip to content

Filter export missing from Firestore package #2191

Closed
@jhuleatt

Description

@jhuleatt

[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:

export {
AddPrefixToKeys,
BulkWriter,
BulkWriterOptions,
BundleBuilder,
ChildUpdateFields,
CollectionGroup,
CollectionReference,
DocumentChange,
DocumentChangeType,
DocumentData,
DocumentReference,
DocumentSnapshot,
FieldPath,
FieldValue,
Firestore,
FirestoreDataConverter,
GeoPoint,
GrpcStatus,
NestedUpdateFields,
OrderByDirection,
PartialWithFieldValue,
Precondition,
Primitive,
Query,
QueryDocumentSnapshot,
QueryPartition,
QuerySnapshot,
ReadOptions,
ReadOnlyTransactionOptions,
ReadWriteTransactionOptions,
Settings,
SetOptions,
Timestamp,
Transaction,
UpdateData,
UnionToIntersection,
WhereFilterOp,
WithFieldValue,
WriteBatch,
WriteResult,
v1,
setLogFunction,
} from '@google-cloud/firestore';

Relevant Code:

const { getFirestore, Filter } = require('firebase-admin/firestore');

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions