Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

getDocs

Executes the query and returns the results as a QuerySnapshot.

Note: getDocs() attempts to provide up-to-date data when possible by waiting for data from the server, but it may return cached data or fail if you are offline and the server cannot be reached. To specify this behavior, invoke getDocsFromCache or getDocsFromServer.

function getDocs<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>): Promise<QuerySnapshot<AppModelType, DbModelType>>;
§
getDocs<AppModelType, DbModelType extends DocumentData>(query: Query<AppModelType, DbModelType>): Promise<QuerySnapshot<AppModelType, DbModelType>>
[src]

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
query: Query<AppModelType, DbModelType>
[src]

§Return Type

§
Promise<QuerySnapshot<AppModelType, DbModelType>>
[src]

A Promise that will be resolved with the results of the query.