Skip to content

Instantly share code, notes, and snippets.

@Alino
Last active August 29, 2015 14:23
Show Gist options
  • Save Alino/32eaa475c13f64b01228 to your computer and use it in GitHub Desktop.
Save Alino/32eaa475c13f64b01228 to your computer and use it in GitHub Desktop.
db.eshops
{
"_id" : ObjectId("53e87e239ae974e6a0a81004"),
"name" : "www.example.com",
"products" : [
{
"name" : "apple", //lets say the name key here is primary key of products
"status" : 0
},
{
"name" : "banana",
"status" : 0
},
{
"name" : "iphone",
"status" : 0
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment