Skip to content

Support MongoDB collation #4883

Closed
Closed

Description

@oallouch

Hi,
Being able to use collation with Parse.Query (as a param of find or aggregate for instance) would be great for case insensitive searches.

What do you think about it ?

For now, I'll use the rawCollection using the 'not so internal' Config :)

Thx,
Olivier

Activity

  1. flovilmart commented on Jul 26, 2018

    @flovilmart
    Contributor

    @oallouch we already added additional options for the queries like the read preference. Collation would be in the same style. Do you have any documentation from mongodb?

  2. oallouch commented on Jul 27, 2018

    @oallouch
    ContributorAuthor

    Of course
    For standard queries:
    https://docs.mongodb.com/manual/reference/method/cursor.collation/
    For the aggregation framework (search 'collation' on this page)
    https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/

  3. stale commented on Sep 18, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. oallouch commented on Jan 10, 2020

    @oallouch
    ContributorAuthor

    Any news on this one ?

  5. acinader commented on Jan 10, 2020

    @acinader
    Contributor

    hi @oallouch I got started on a related solution this past summer

    to solve what I think is a bad and annoying shortcoming of parse: usernames and emails are case-sensitive in a way that they shouldn't be (see: #3990).

    I haven't gotten the solution over the finish line, and your use-case may require us to rethink how I planned going about it. I'd love some help with finishing it (@dplewis :). But I haven't gotten any takers yet.

  6. oallouch commented on Jan 11, 2020

    @oallouch
    ContributorAuthor

    Maybe all I need is an option parameter so that I can pass any mongo option to the native driver.
    It's what I do now when I directly use the driver's collection.

  7. dplewis commented on Jan 11, 2020

    @dplewis
    Member

    @acinader Sorry dropped the ball on that one. I was waiting for you to right a test.

    @oallouch You are right. Feel free to open a PR. There are a lot of options like ReadPreference that get passed into mongo with the same style.

    We are here to help. I’ll assign this to myself but I wont be able to get to it for a while.

  8. self-assigned this
    on Jan 11, 2020
  9. oallouch commented on Jan 11, 2020

    @oallouch
    ContributorAuthor

    @dplewis ok, I'll try when I have more time.

  10. dplewis commented on Jan 12, 2020

    @dplewis
    Member

    I’ll race you lol.

  11. oallouch commented on Jan 20, 2020

    @oallouch
    ContributorAuthor

    I just saw your response, which means you'll win :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions