diff --git a/.changeset/wild-frogs-play.md b/.changeset/wild-frogs-play.md new file mode 100644 index 00000000000..680ffff4fd4 --- /dev/null +++ b/.changeset/wild-frogs-play.md @@ -0,0 +1,5 @@ +--- +"@firebase/firestore": patch +--- + +Fix documentation for getDocsFromCache. diff --git a/packages/firestore/src/api/reference_impl.ts b/packages/firestore/src/api/reference_impl.ts index dbefef93d26..eabd0fb0021 100644 --- a/packages/firestore/src/api/reference_impl.ts +++ b/packages/firestore/src/api/reference_impl.ts @@ -196,7 +196,8 @@ export function getDocs(query: Query): Promise> { /** * 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. */