feathers-mongoose icon indicating copy to clipboard operation
feathers-mongoose copied to clipboard

Collation with pagination

Open noemission opened this issue 3 years ago • 0 comments

Steps to reproduce

When pagination is enabled, the code that runs a count query before the actual query doesn't take into account the collation options. The line here needs to add the collation options in order to get the correct amount of found documents.

Right now the response of a query will contain the correct documents in the data object but the total will be zero, making pagination unusable with collation.

noemission avatar Nov 11 '21 14:11 noemission