Tag Archives: mongodb

MongoDB: importing dev data

My data exists in a file as a giant JSON array. [ {DOC1},{DOC2},{DOC3} ] I’m changing parameters and data as I develop so needed a way to import data that would also drop whatever data was in the collection already. … Continue reading

Posted in MongoDB | Tagged , , , | Leave a comment

MongoDB: Query an Array of Documents

Felt that it wasn’t very apparent how to do to do a query of array of objects (documents). Maybe because I used the wrong terminology when searching. I searched an array of object as oppose to array of documents. To … Continue reading

Posted in MongoDB | Tagged , , , , | Leave a comment

Install Node.js MongoDB on Ubuntu

For Ubuntu 12.04 Node.js (v 0.6.12) sudo apt-get install nodejs MongoDB sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 7F0CEB10 echo ‘deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen’ | sudo tee /etc/apt/sources.list.d/mongodb.list sudo apt-get update sudo apt-get install mongodb-10gen Reference: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Posted in Linux | Tagged , , , | Leave a comment