Closed jprubio closed 3 years ago
did you try this with 11.3? we reworked paging completly
did you try this with 11.3? we reworked paging completly
Sure, 11.3 and also 12.0.0-preview.18
I think there's a general flaw in the MongoDB pagination logic, since #3683 talks about the same issue, but for MongoDbOffsetPaging
.
@PascalSenn I put both paging bugs on your deck for V12 since we need this to be working for our ccc project.
Describe the bug Hi everyone,
when i use UseMongoDbPaging with IncludeTotalCount=true , the totalCount field seems to be wrong when 'first' field is included in query.
To Reproduce On MongoDB example (https://github.com/ChilliCream/hotchocolate-examples/tree/master/misc/MongoDB) ... When I write following query
throws right number of items and totalCount (3):
But when i include 'first' value, totalCount differs:
Expected behavior totalCount should show always the total number of elements that matches the input filter, in above case, 3.
Additional context Faced with HC 11.3 and also HC 12.0.0-preview.18