All notes
Mong

Mongo

Query



show dbs
use dbName
show collections
# choose your collection and type the following to see all contents of that collection:
db.collectionName.find()

coll.find( { name: "Joe" } );

# The following sample document specifies a descending sort by the age field and then an ascending sort by the posts field:
{ age : -1, 'posts.createdAt': 1 }

Commandlines

mongoexport


mongoimport -h localhost:3001 --db meteor --collection contacts --type csv -o /opt/backups/contacts.csv