firestore namespace

Functions

FunctionDescription
beforeSnapshotConstructor(event)
database(database)
document(path)Select the Firestore document to listen to for events.
namespace(namespace)
snapshotConstructor(event)

Classes

ClassDescription
DatabaseBuilder
DocumentBuilder
NamespaceBuilder

Type Aliases

Type AliasDescription
DocumentSnapshot
QueryDocumentSnapshot

firestore.beforeSnapshotConstructor()

Signature:

exportdeclarefunctionbeforeSnapshotConstructor(event:LegacyEvent):DocumentSnapshot;

Parameters

ParameterTypeDescription
eventLegacyEvent

Returns:

DocumentSnapshot

firestore.database()

Signature:

exportdeclarefunctiondatabase(database:string):DatabaseBuilder;

Parameters

ParameterTypeDescription
databasestring

Returns:

DatabaseBuilder

firestore.document()

Select the Firestore document to listen to for events.

Signature:

exportdeclarefunctiondocument<Pathextendsstring>(path:Path):DocumentBuilder<Path>;

Parameters

ParameterTypeDescription
pathPathFull database path to listen to. This includes the name of the collection that the document is a part of. For example, if the collection is named "users" and the document is named "Ada", then the path is "/users/Ada".

Returns:

DocumentBuilder<Path>

firestore.namespace()

Signature:

exportdeclarefunctionnamespace(namespace:string):NamespaceBuilder;

Parameters

ParameterTypeDescription
namespacestring

Returns:

NamespaceBuilder

firestore.snapshotConstructor()

Signature:

exportdeclarefunctionsnapshotConstructor(event:LegacyEvent):DocumentSnapshot;

Parameters

ParameterTypeDescription
eventLegacyEvent

Returns:

DocumentSnapshot

firestore.DocumentSnapshot

Signature:

exporttypeDocumentSnapshot=firestore.DocumentSnapshot;

firestore.QueryDocumentSnapshot

Signature:

exporttypeQueryDocumentSnapshot=firestore.QueryDocumentSnapshot;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-10 UTC.