Getting Started
What is MongoDB?
Install / Config
C.R.U.D. Ops
Data Modeling
Database Mgmt
Installation and Configuration
Using the
mongo
built-in javascript shell: access, insert,find
What is the mongo javascript shell?
.
Javascript based interactive interface
Lets you interact with MongoDB directly
Why is the mongo javascript shell important?
.
You are dealing with the data directly
You can see EXACTLY what is in the database
How do you access a database?
.
show databases
db
shows the current database
use
selects a database
How do you create a new collection?
.
show collections
db.
collection
.save({document})
How do you find documents in a collection?
.
db.collection.find()
db.collection.find( { field : "value" } )
+
o
-