UNPKG

voluptasmollitia

Version:
27 lines (15 loc) 848 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [getDocsFromServer](./firestore_.getdocsfromserver.md) ## getDocsFromServer() function Executes the query and returns the results as a `QuerySnapshot` from the server. Returns an error if the network is not available. <b>Signature:</b> ```typescript export declare function getDocsFromServer<T>(query: Query<T>): Promise<QuerySnapshot<T>>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | query | [Query](./firestore_.query.md)<!-- -->&lt;T&gt; | | <b>Returns:</b> Promise&lt;[QuerySnapshot](./firestore_.querysnapshot.md)<!-- -->&lt;T&gt;&gt; A Promise that will be resolved with the results of the query.