File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1845,6 +1845,15 @@ export class Query<T = firestore.DocumentData> implements firestore.Query<T> {
1845
1845
return this . _queryOptions . fieldOrders ;
1846
1846
}
1847
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
+
1848
1857
const fieldOrders = this . _queryOptions . fieldOrders . slice ( ) ;
1849
1858
1850
1859
// If no explicit ordering is specified, use the first inequality to
You can’t perform that action at this time.
0 commit comments