Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Create, Read, Update and Delete Operations
Adding Information: Arrays
What if your document contains arrays?
.
No problem: use your programming language array syntax
Are numeric and associative arrays handled differently?
.
Numeric:
Reference elements by number
In the MongoDB shell: field:[ value, value ]
Associative:
Reference elements by label
In the MongoDB shell: field:[{label1:value1,label2:value2},{etc.}]
How do you find info in array fields?
.
Use
find()
Numeric arrays: use
$in
Associative arrays: use
array.key
syntax
+
o
-