firestore-snapshot-utils
Version:
**Utils for testing Firestore DB snapshots**
8 lines (7 loc) • 367 B
TypeScript
import type { Query, QueryDocumentSnapshot } from 'firebase-admin/firestore';
/**
* Returns all documents in a flat list from the provided DB queries.
* @param queries - The DB queries to get the documents from. Can be a single
* query or an array of queries.
*/
export declare const getDBSnapshot: (queries: Query | Query[]) => Promise<QueryDocumentSnapshot[]>;