Created
November 21, 2018 19:55
-
-
Save stephencweiss/3f4095da701b0f8191e9c006b74f289f to your computer and use it in GitHub Desktop.
Mongo getIndexes() example - DB = trailblazer; Collection = descriptions
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
// mongo sh | |
> db.descriptions.getIndexes() | |
[ | |
{ | |
"v" : 2, | |
"key" : { | |
"_id" : 1 | |
}, | |
"name" : "_id_", | |
"ns" : "trailblazer.descriptions" | |
}, | |
{ | |
"v" : 2, | |
"key" : { | |
"product_id" : 1 | |
}, | |
"name" : "product_id_1", | |
"ns" : "trailblazer.descriptions" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment