firestore.DatabaseBuilder class
Stay organized with collections
Save and categorize content based on your preferences.
Signature:
export declare class DatabaseBuilder
Constructors
Methods
firestore.DatabaseBuilder.(constructor)
Constructs a new instance of the DatabaseBuilder
class
Signature:
constructor(database: string, options: DeploymentOptions);
Parameters
firestore.DatabaseBuilder.document()
Signature:
document<Path extends string>(path: Path): DocumentBuilder<Path>;
Parameters
Parameter |
Type |
Description |
path |
Path |
|
Returns:
DocumentBuilder<Path>
firestore.DatabaseBuilder.namespace()
Signature:
namespace(namespace: string): NamespaceBuilder;
Parameters
Parameter |
Type |
Description |
namespace |
string |
|
Returns:
NamespaceBuilder
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-04-24 UTC.
[null,null,["Last updated 2023-04-24 UTC."],[],[],null,["**Signature:** \n\n export declare class DatabaseBuilder \n\nConstructors\n\nMethods\n\nfirestore.DatabaseBuilder.(constructor)\n\nConstructs a new instance of the `DatabaseBuilder` class\n\n**Signature:** \n\n constructor(database: string, options: DeploymentOptions);\n\nParameters\n\nfirestore.DatabaseBuilder.document()\n\n**Signature:** \n\n document\u003cPath extends string\u003e(path: Path): DocumentBuilder\u003cPath\u003e;\n\nParameters\n\n**Returns:**\n\n[DocumentBuilder](./firebase-functions.firestore.documentbuilder.md#firestoredocumentbuilder_class)\\\u003cPath\\\u003e\n\nfirestore.DatabaseBuilder.namespace()\n\n**Signature:** \n\n namespace(namespace: string): NamespaceBuilder;\n\nParameters\n\n**Returns:**\n\n[NamespaceBuilder](./firebase-functions.firestore.namespacebuilder.md#firestorenamespacebuilder_class)"]]