I’m using mongoDB with mongoskin on top of Node.JS.
I have a list of images (collection ‘images’) and for each image I’d like to save a list of comments.
I believe the right way with mongodb is to use a list of comments inside of each Image document.
The problem – I have no idea how to do this. How do I use lists inside of documents? and how do I perform CRUD on them?
Many thanks for the help.
this is how you would do it with the driver (mongoskin is just a thin layer on top)
useful links
http://docs.mongodb.org/manual/
http://mongodb.github.com/node-mongodb-native/