Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Create, Read, Update and Delete Operations
Performing Queries: Query Modifications -- Part 1
How can you limit the fields returned?
.
Use projections
find({query},{field1:1,field2:0})
1 = include, 0 = exclude
How do you limit the number of documents returned?
.
db.collection.find().limit()
How do you find one document?
.
db.collection.findOne()
db.collection.find().limit(1)
How do you find a document where the value is in an array?
.
db.world_gdp.find({"field.element":{value}})
+
o
-