We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0d0ad commit aa62e43Copy full SHA for aa62e43
packages/firestore/src/remote/serializer.ts
@@ -345,6 +345,10 @@ export class JsonProtoSerializer {
345
346
fromQueryPath(name: string): ResourcePath {
347
const resourceName = this.fromResourceName(name);
348
+ // In v1beta1 queries for collections at the root did not have a trailing
349
+ // "/documents". In v1 all resource paths contain "/documents". Preserve the
350
+ // ability to read the v1beta1 form for compatibility with queries persisted
351
+ // in the local query cache.
352
if (resourceName.length === 4) {
353
return ResourcePath.EMPTY_PATH;
354
}
0 commit comments