We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac35b37 commit cc622fcCopy full SHA for cc622fc
dev/src/reference.ts
@@ -1845,6 +1845,15 @@ export class Query<T = firestore.DocumentData> implements firestore.Query<T> {
1845
return this._queryOptions.fieldOrders;
1846
}
1847
1848
+ // TODO(b/296435819): Remove this warning message.
1849
+ if (cursorValuesOrDocumentSnapshot[0] instanceof DocumentReference) {
1850
+ // eslint-disable-next-line no-console
1851
+ console.warn(
1852
+ `Warning: Passing DocumentReference into a cursor without orderBy clause is not an intended
1853
+ behavior. Please use DocumentSnapshot or add an explicit orderBy on document key field.`
1854
+ );
1855
+ }
1856
+
1857
const fieldOrders = this._queryOptions.fieldOrders.slice();
1858
1859
// If no explicit ordering is specified, use the first inequality to
0 commit comments