We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70e6254 commit 37f31c5Copy full SHA for 37f31c5
.changeset/wild-frogs-play.md
@@ -0,0 +1,5 @@
1
+---
2
+"@firebase/firestore": patch
3
4
+
5
+Fix documentation for getDocsFromCache.
packages/firestore/src/api/reference_impl.ts
@@ -196,7 +196,8 @@ export function getDocs<T>(query: Query<T>): Promise<QuerySnapshot<T>> {
196
197
/**
198
* Executes the query and returns the results as a `QuerySnapshot` from cache.
199
- * Returns an error if the document is not currently cached.
+ * Returns an empty result set if no documents matching the query are currently
200
+ * cached.
201
*
202
* @returns A `Promise` that will be resolved with the results of the query.
203
*/
0 commit comments