Skip to content

Instantly share code, notes, and snippets.

@bingeboy
Created Feb 9, 2014
Embed
What would you like to do?
MongoDB Week 4
> db.posts.getIndexes()
[
{
"v" : 1,
"key" : {
"_id" : 1
},
"ns" : "blog.posts",
"name" : "_id_"
},
{
"v" : 1,
"key" : {
"date" : 1
},
"ns" : "blog.posts",
"name" : "date_1"
},
{
"v" : 1,
"key" : {
"date" : -1
},
"ns" : "blog.posts",
"name" : "date_-1"
},
{
"v" : 1,
"key" : {
"permalink" : 1
},
"ns" : "blog.posts",
"name" : "permalink_1"
},
{
"v" : 1,
"key" : {
"tags" : 1
},
"ns" : "blog.posts",
"name" : "tags_1"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment