firestore namespace

Chức năng

Chức năng Sự miêu tả
beforeSnapshotConstructor(sự kiện)
cơ sở dữ liệu(cơ sở dữ liệu)
tài liệu (đường dẫn) Chọn tài liệu Firestore để nghe các sự kiện.
không gian tên (không gian tên)
snapshotConstructor(sự kiện)

Các lớp học

Lớp học Sự miêu tả
Trình tạo cơ sở dữ liệu
Trình tạo tài liệu
Trình tạo không gian tên

Nhập bí danh

Nhập bí danh Sự miêu tả
Tài LiệuẢnh Chụp Nhanh
Ảnh chụp nhanh tài liệu truy vấn

firestore.b BeforeSnapshotConstructor()

Chữ ký:

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

Thông số

Tham số Kiểu Sự miêu tả
sự kiện Sự kiện

Trả về:

Tài LiệuẢnh Chụp Nhanh

firestore.database()

Chữ ký:

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

Thông số

Tham số Kiểu Sự miêu tả
cơ sở dữ liệu sợi dây

Trả về:

Trình tạo cơ sở dữ liệu

firestore.document()

Chọn tài liệu Firestore để nghe các sự kiện.

Chữ ký:

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

Thông số

Tham số Kiểu Sự miêu tả
con đường Con đường Đường dẫn cơ sở dữ liệu đầy đủ để nghe. Điều này bao gồm tên của bộ sưu tập chứa tài liệu. Ví dụ: nếu bộ sưu tập có tên là "users" và tài liệu có tên là "Ada", thì đường dẫn là "/users/Ada".

Trả về:

Trình tạo tài liệu <Đường dẫn>

firestore.namespace()

Chữ ký:

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

Thông số

Tham số Kiểu Sự miêu tả
không gian tên sợi dây

Trả về:

Trình tạo không gian tên

firestore.snapshotConstructor()

Chữ ký:

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

Thông số

Tham số Kiểu Sự miêu tả
sự kiện Sự kiện

Trả về:

Tài LiệuẢnh Chụp Nhanh

firestore.DocumentSnapshot

Chữ ký:

export type DocumentSnapshot = firestore.DocumentSnapshot;

firestore.QueryDocumentSnapshot

Chữ ký:

export type QueryDocumentSnapshot = firestore.QueryDocumentSnapshot;