firestore namespace

機能

関数説明
beforeSnapshotConstructor(イベント)
データベース(データベース)
ドキュメント(パス)イベントをリッスンする Firestore ドキュメントを選択します。
名前空間(名前空間)
スナップショットコンストラクター(イベント)

クラス

クラス説明
データベースビルダー
ドキュメントビルダー
名前空間ビルダー

タイプエイリアス

タイプエイリアス説明
ドキュメントスナップショット
クエリドキュメントスナップショット

firestore.beforeSnapshotConstructor()

サイン:

export declare function beforeSnapshotConstructor(event: Event): DocumentSnapshot;

パラメーター

パラメータタイプ説明
イベントイベント

戻り値:

ドキュメントスナップショット

firestore.database()

サイン:

export declare function database(database: string): DatabaseBuilder;

パラメーター

パラメータタイプ説明
データベース

戻り値:

データベースビルダー

firestore.document()

イベントをリッスンする Firestore ドキュメントを選択します。

サイン:

export declare function document<Path extends string>(path: Path): DocumentBuilder<Path>;

パラメーター

パラメータタイプ説明
パスパスリッスンするデータベースの完全なパス。これには、ドキュメントが含まれているコレクションの名前が含まれます。たとえば、コレクションの名前が「users」、ドキュメントの名前が「Ada」の場合、パスは「/users/Ada」になります。

戻り値:

ドキュメントビルダー<パス>

firestore.namespace()

サイン:

export declare function namespace(namespace: string): NamespaceBuilder;

パラメーター

パラメータタイプ説明
名前空間

戻り値:

名前空間ビルダー

firestore.snapshotConstructor()

サイン:

export declare function snapshotConstructor(event: Event): DocumentSnapshot;

パラメーター

パラメータタイプ説明
イベントイベント

戻り値:

ドキュメントスナップショット

firestore.DocumentSnapshot

サイン:

export type DocumentSnapshot = firestore.DocumentSnapshot;

firestore.QueryDocumentSnapshot

サイン:

export type QueryDocumentSnapshot = firestore.QueryDocumentSnapshot;