Skip to content
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

Support MongoDB collation #4883

Closed
oallouch opened this issue Jul 9, 2018 · 10 comments
Closed

Support MongoDB collation #4883

oallouch opened this issue Jul 9, 2018 · 10 comments
Assignees

Comments

@oallouch
Copy link
Contributor

oallouch commented Jul 9, 2018

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

@flovilmart
Copy link
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?

@oallouch
Copy link
Contributor Author

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/

@stale
Copy link

stale bot commented Sep 18, 2018

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.

@stale stale bot added the wontfix label Sep 18, 2018
@stale stale bot closed this as completed Sep 25, 2018
@oallouch
Copy link
Contributor Author

Any news on this one ?

@acinader
Copy link
Contributor

acinader commented Jan 10, 2020

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.

@oallouch
Copy link
Contributor Author

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.

@dplewis
Copy link
Member

dplewis commented Jan 11, 2020

@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.

@dplewis dplewis self-assigned this Jan 11, 2020
@oallouch
Copy link
Contributor Author

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

@dplewis
Copy link
Member

dplewis commented Jan 12, 2020

I’ll race you lol.

@oallouch
Copy link
Contributor Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants