Skip to content

Commit

Permalink
fix: firestore nested queries
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Jan 9, 2023
1 parent 7e2a5bf commit 50e06b5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/firestore/lib/FirestoreQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,8 @@ export default class FirestoreQuery {
continue;
}

console.error('fieldpath', order.fieldPath);

const value = documentSnapshot.get(order.fieldPath);

console.error('value', value);

if (value === undefined) {
throw new Error(
`firebase.firestore().collection().${cursor}(*) You are trying to start or end a query using a document for which the field '${order.fieldPath}' (used as the orderBy) does not exist.`,
Expand Down

0 comments on commit 50e06b5

Please sign in to comment.