jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
284 stars 64 forks source link

adds support for creating unique indexes #182

Open AndLLA opened 4 years ago

AndLLA commented 4 years ago

This simple modification adds a new field "isUnique" to connection$index() in order to be able to create unique indexes. The default value is set to false, in order to retain current behavior.

Tests on my end are successful.