The ID2 and ID3 posts have the same createdAt field value. A query with arguments allPosts(orderBy: createdAt_DESC, first: 3) will return posts ID4, ID3, ID2.
Imagine this is part of a pagination sequence, so we would next call allPosts(orderBy: createdAt_DESC, first: 3, after: "ID2"). Due to the fact that posts ID2 and ID3 have the same field value for the ordering field, this query will return ID3, ID1 instead of the expected single ID1.
Imagine a
Post
model that is sorted bycreatedAt
, that has the following data:The
ID2
andID3
posts have the samecreatedAt
field value. A query with argumentsallPosts(orderBy: createdAt_DESC, first: 3)
will return postsID4
,ID3
,ID2
.Imagine this is part of a pagination sequence, so we would next call
allPosts(orderBy: createdAt_DESC, first: 3, after: "ID2")
. Due to the fact that postsID2
andID3
have the same field value for the ordering field, this query will returnID3
,ID1
instead of the expected singleID1
.