Answer the question
In order to leave comments, you need to log in
Does the {unique:true} option restrict the creation of new documents in the MongoDb collection?
Hello.
If you create an index createIndex({"name":1}, {unique:true}) for the "name" field of the db.users collection, then it will not be possible to place documents with the same "name" field in it?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question