You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a MongoDB problem but I found the solution without modifying the database collection. We need to add to the query a collation object with locale and strength, like the next example (extracted from here:
So, the solution is to insert the collation to the query, there was two alternatives:
put the collation, for example, in the stripOptions function here
allow to set the collation property in ctx.query
The first option is working for me, but I want to do a pull request and I`m sure that isn't the way. So I've started to implement the second solution but the collation property doesn't reach the db.js. I think there is a file that I haven't got in consideration between the get.js -> ?? -> db.js
The text was updated successfully, but these errors were encountered:
Create a collection with one string type property . Then insert a few data like the next example:
When you query with sort set to 1, for example:
The expected object would be:
But the returned object is:
This is a MongoDB problem but I found the solution without modifying the database collection. We need to add to the query a collation object with locale and strength, like the next example (extracted from here:
So, the solution is to insert the collation to the query, there was two alternatives:
The first option is working for me, but I want to do a pull request and I`m sure that isn't the way. So I've started to implement the second solution but the collation property doesn't reach the db.js. I think there is a file that I haven't got in consideration between the get.js -> ?? -> db.js
The text was updated successfully, but these errors were encountered: