We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have the following collation on my collection:
schemaOptions: { collection: 'users', collation: { locale: 'en', strength: 2, }, },
It's working correctly when I directly use the model queries, but it fails when I use the methods provided by this library.
With the given collection:
[ { "username": "aaaa" } ]
model query:
this.model.findOne({ username: 'AAaa' }) // FINDS the 'aaaa' username
apollo-datasource-mongodb:
this.findByFields({ username: 'AAaa' }).then((documents) => documents?.[0]) // does NOT find the 'aaaa' username
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have the following collation on my collection:
It's working correctly when I directly use the model queries, but it fails when I use the methods provided by this library.
With the given collection:
model query:
apollo-datasource-mongodb:
The text was updated successfully, but these errors were encountered: