mongojs icon indicating copy to clipboard operation
mongojs copied to clipboard

How to use collation

Open ppeeou opened this issue 7 years ago • 2 comments

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" } )

ppeeou avatar Dec 10 '18 05:12 ppeeou

+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 avatar Nov 28 '19 05:11 AJB99

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

AJB99 avatar Nov 29 '19 03:11 AJB99