Home > @firebase/firestore > / > getDocsFromServer
getDocsFromServer() function
Executes the query and returns the results as a QuerySnapshot
from the server. Returns an error if the network is not available.
Signature:
export declare function getDocsFromServer<T>(query: Query<T>): Promise<QuerySnapshot<T>>;
Parameters
Parameter | Type | Description |
---|---|---|
query | Query<T> |
Returns:
Promise<QuerySnapshot<T>>
A Promise that will be resolved with the results of the query.