Simple, self-explanatory code snippets.
db.COLL_NAME.createIndex( { FIELD_NAME : 1 }, { unique: true } );
No comments:
Post a Comment