The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.