-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
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
alexander-watsup
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed