Skip to content

Instantly share code, notes, and snippets.

@FrancescaK
Created January 23, 2012 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancescaK/1665555 to your computer and use it in GitHub Desktop.
Save FrancescaK/1665555 to your computer and use it in GitHub Desktop.
MongoDB Lab Boot Camp 1
Product collection
{
_id : ObjectId
name : "myproductname"
attributes
{
color :
part_count
age :
dimension :
manufacturer:
}
price {
current : 12345
history :
[ { date : timestamp,
price: date },
{ date: timestamp,
price: date }
]
}
reviews :
[ { _id
username
date : timestamp
text
comments :
[ {
username:
text
timestamp
}
]
votes : 0
]
}
categories collection
{
_id: ##object ID
name:
parent: objectID
items:
[ _id: ,
_id:
]
}
===
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment