Created
October 16, 2014 21:14
-
-
Save x/07b6c260b666e1c5cc5f to your computer and use it in GitHub Desktop.
get collections with unique indexes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db.getCollectionNames().filter(function(col){return db[col].getIndexes().filter(function(idx){return idx.unique}).length}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment