Created
January 23, 2012 21:10
-
-
Save FrancescaK/1665555 to your computer and use it in GitHub Desktop.
MongoDB Lab Boot Camp 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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