Skip to content

Instantly share code, notes, and snippets.

@fabiocarneiro
Created April 28, 2015 17:41
Show Gist options
  • Save fabiocarneiro/d7a6d49ec5162010c1e8 to your computer and use it in GitHub Desktop.
Save fabiocarneiro/d7a6d49ec5162010c1e8 to your computer and use it in GitHub Desktop.
> db.Category.find().toArray();
[
{
"_id" : ObjectId("552c3964312f07010e828c21"),
"active" : true,
"featured" : true,
"name" : "Smartphone",
"slug" : "smartphone",
"description" : "",
"children" : [ ]
},
{
"_id" : ObjectId("552c39a2312f07b30d828c21"),
"active" : true,
"featured" : true,
"name" : "Celulares",
"slug" : "celulares",
"description" : "",
"children" : [
DBRef("Category", ObjectId("552c3964312f07010e828c21"))
]
},
{
"_id" : ObjectId("552c394d312f076d0d828c23"),
"active" : true,
"featured" : true,
"name" : "Telefonia",
"slug" : "telefonia",
"description" : "",
"children" : [
DBRef("Category", ObjectId("552c39a2312f07b30d828c21"))
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment