voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 848 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [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)<!-- --><T> | |
<b>Returns:</b>
Promise<[QuerySnapshot](./firestore_.querysnapshot.md)<!-- --><T>>
A Promise that will be resolved with the results of the query.