-
-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Case insensitive sorting on multiple field #111
Comments
I have solved deriving FindMany in my project and overriding the motor_cursor property in order to pass the collation parameter to the find method of the AsyncIOMotorCollection motor class class CustomFindMany(FindMany):
|
Hey @terravi , Thank you for the input. It looks like an important feature. I'll add this to Beanie soon. |
I faced this earlier couldn't find docs on how to achieve it, but it can be achieved now just by adding the collation param to the find function:
|
I need to be able to sort documents by multiple fields in case insensitive mode. In mongo db I could do this with collations and strength at 1. I have not found a way to use collations with beanie.
The text was updated successfully, but these errors were encountered: