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

How to use collation #365

Open
ppeeou opened this issue Dec 10, 2018 · 2 comments
Open

How to use collation #365

ppeeou opened this issue Dec 10, 2018 · 2 comments

Comments

@ppeeou
Copy link

ppeeou commented Dec 10, 2018

https://docs.mongodb.com/manual/reference/collation/

Currently, the cursor functions provided by mongojs are as follows.
image

I want to use this.

db.myColl.find( { category: "cafe" } ).collation( { locale: "fr" } )
@AJB99
Copy link

AJB99 commented Nov 28, 2019

+1

Is there a timeframe for implementing this?

I’m going to dig into this myself, but starting from scratch on the project it’s going to take a while for me to get up to speed.

Is there an architecture guide or style guide I can use to get started?

@AJB99
Copy link

AJB99 commented Nov 29, 2019

I've actually found that this can be achieved by using the aggregate function, which is supported by mongojs.

More information on adding collation as one of your aggregate options can be found here:
https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/#specify-a-collation

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

2 participants