feathers-mongoose
feathers-mongoose copied to clipboard
Collation with pagination
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.