You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pagination helpers on a query such as startAt, endAt, startAfter and endAfter do not respect the ordering direction.
An example using startAfter:
constfirestore=newMockFirestore().firestore();awaitfirestore.collection('my-collection').doc('first-document').set({score: 1});awaitfirestore.collection('my-collection').doc('second-document').set({score: 2});awaitfirestore.collection('my-collection').doc('third-document').set({score: 3});// This should return second-document, then first-document, but it does notawaitfirestore.collection('my-collection').orderBy('score','desc').startAfter(3).get();
The pagination helpers on a query such as
startAt
,endAt
,startAfter
andendAfter
do not respect the ordering direction.An example using
startAfter
:In
filterByCursor
, the value is compared using>
:mock-cloud-firestore/src/utils/query/index.js
Lines 13 to 15 in bbe65d9
The text was updated successfully, but these errors were encountered: