[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix documentation for getDocsFromCache. (#6879)
Browse files Browse the repository at this point in the history
Fix documentation for getDocsFromCache.
  • Loading branch information
MarkDuckworth committed Dec 12, 2022
1 parent 70e6254 commit 37f31c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wild-frogs-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@firebase/firestore": patch
---

Fix documentation for getDocsFromCache.
3 changes: 2 additions & 1 deletion packages/firestore/src/api/reference_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ export function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>> {

/**
* Executes the query and returns the results as a `QuerySnapshot` from cache.
* Returns an error if the document is not currently cached.
* Returns an empty result set if no documents matching the query are currently
* cached.
*
* @returns A `Promise` that will be resolved with the results of the query.
*/
Expand Down

0 comments on commit 37f31c5

Please sign in to comment.