UNPKG

voluptasmollitia

Version:
27 lines (15 loc) 847 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; [getDocsFromCache](./firestore_.getdocsfromcache.md) ## getDocsFromCache() function Executes the query and returns the results as a `QuerySnapshot` from cache. Returns an error if the document is not currently cached. <b>Signature:</b> ```typescript export declare function getDocsFromCache<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.