firestore namespace

함수

클래스

유형 별칭

Firestore.beforeSnapshotStructor()

서명:

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

매개변수

매개변수 유형 설명
event 이벤트

반환:

DocumentSnapshot

Firestore.database()

서명:

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

매개변수

매개변수 유형 설명
데이터베이스 문자열

반환:

DatabaseBuilder

Firestore.document()

이벤트를 리슨할 Firestore 문서를 선택합니다.

서명:

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

매개변수

매개변수 유형 설명
경로 경로 리슨할 전체 데이터베이스 경로입니다. 여기에는 문서가 속한 컬렉션의 이름이 포함됩니다. 예를 들어 컬렉션 이름이 'users'인 경우 문서의 이름이 'Ada'이고 경로는 '/users/Ada'입니다.

반환:

DocumentBuilder<경로>

Firestore.namespace()

서명:

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

매개변수

매개변수 유형 설명
네임스페이스 문자열

반환:

네임스페이스 빌더

Firestore.snapshotStructor()

서명:

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

매개변수

매개변수 유형 설명
event 이벤트

반환:

DocumentSnapshot

Firestore.DocumentSnapshot

서명:

export type DocumentSnapshot = firestore.DocumentSnapshot;

Firestore.QueryDocumentSnapshot

서명:

export type QueryDocumentSnapshot = firestore.QueryDocumentSnapshot;