Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

default collation doesn't work #111

Open
Labels
bugSomething isn't working help wantedExtra attention is needed
@RemyMachado

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /