How do you modify the options that we set on a collection at the time of creation? And how do we view the options already set?
If we see the collation option for example, I create a collection like this:
db.createCollection("words", {collation : {locale :"es", strength : 2}});
And add few documents:
db.words.insertOne({text : "Résumé"});
db.words.insertOne({text : "Resume"});
db.words.insertOne({text : "résumé"});
db.words.insertOne({text : "resume"});
How do I change the strength of the collation on this collection to 3? how do I see the change? I do not see any relevant functions available on the db
object or db.words
object or in the docs!