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]§Return Type
§
Promise<QuerySnapshot<AppModelType, DbModelType>>
[src]A Promise
that will be resolved with the results of the query.