If I use
Cosmonaut.Extensions.PaginationExtensions.WithPagination<T>(this IQueryable<T> queryable, string continuationToken, int pageSize);
and pass pageSize such that first page will contain only null in the ORDER BY field, let say pageSize = 7, then requesting second page with continuation token will return me only 1 record and no more pages.
If I pass pageSize bigger than 8 it will return all records in following pages.
I am not sure whether it's a bug in Comsos Db, Cosmos Db SDK or Cosmonaut.
Let say I am excecuting this query
SELECT VALUE t.startDate FROM Items t ORDER BY t.startDate ASC
And it returns this result: (please notice - there are 8 records with null)
If I use
Cosmonaut.Extensions.PaginationExtensions.WithPagination<T>(this IQueryable<T> queryable, string continuationToken, int pageSize);
and pass pageSize such that first page will contain only null in the ORDER BY field, let say pageSize = 7, then requesting second page with continuation token will return me only 1 record and no more pages.If I pass pageSize bigger than 8 it will return all records in following pages.
I am not sure whether it's a bug in Comsos Db, Cosmos Db SDK or Cosmonaut.