Skip to content

Instantly share code, notes, and snippets.

@extrawurst
Created August 20, 2020 09:18
Show Gist options
  • Save extrawurst/5444d38810302827dbb4b07b958d9679 to your computer and use it in GitHub Desktop.
Save extrawurst/5444d38810302827dbb4b07b958d9679 to your computer and use it in GitHub Desktop.
db.users.getIndexes()
db.users.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"name" : "_id_",
"ns" : "telescope.users"
},
{
"v" : 1,
"key" : {
"test" : 1
},
"name" : "test_1",
"ns" : "telescope.users"
},
{
"v" : 1,
"key" : {
"test" : 1,
"created" : 1
},
"name" : "test_1_created_1",
"ns" : "telescope.users"
},
{
"v" : 1,
"key" : {
"test" : 1,
"group" : 1
},
"name" : "test_1_group_1",
"ns" : "telescope.users"
},
{
"v" : 1,
"unique" : true,
"key" : {
"id" : 1,
"test" : 1
},
"name" : "id_1_test_1",
"ns" : "telescope.users"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment