null
US
Sign In
Sign Up for Free
Sign Up
We have detected that Javascript is not enabled in your browser. The dynamic nature of our site means that Javascript must be enabled to function properly. Please read our
terms and conditions
for more information.
Next up
Copy and Edit
You need to log in to complete this action!
Register for Free
5881725
MongoDB Notes
Description
596 Management Information Systems (Data Technologies) Mind Map on MongoDB Notes, created by Callie Toothman on 14/07/2016.
No tags specified
mongodb
management information systems
data technologies
596
Mind Map by
Callie Toothman
, updated more than 1 year ago
More
Less
Created by
Callie Toothman
about 8 years ago
179
0
0
Resource summary
MongoDB Notes
Schema-Free
Hierarchy
Instance
Database
Collection
Document
Every Document has an id
JSON Format
Embedded
Attributes are not stored in separate collection
Implementation depends on the needs of the application
Linked
Optimized to quickly retrieve relevant data
Design should take into account how the application needs the data
Documentation: https://docs.mongodb.com/manual/
Extensions
Mongoose
RoboMongo
MongoChef
CRUD Operations
find
Equivalent to SELECT statement
Examples
Minimal
db.Products.find()
Query + Projection
db.Products.find({ "desc": "42in TV", "width": 41 })
Query Only
db.Products.find({"desc": "42in TV"})
Projection Only
db.Products.find({"width": 1, "height": 1, "depth": 1} )
Arrays
db.Products.find({ "priceHist" : {$elemMatch: { $gt: 100, $lt: 300 } } })
Conditional Statements
db.Products.find({"reviews.star": { $gte: 4 } })
Embedded Collections
db.Products.find({"editorReview.authorlname" : "Smith"} )
Syntax
db.collection.find(query, projection)
Projection: Which columns you're going to return
id always comes back unless id is set to false {id: 0}
Inserts
Examples
Single
db.Questions.insert({"_id": NumberInt(5), "prodID": NumberInt(4), "author": "MrsInquisitive", "text": "Sample question"})
Multiple
db.Questions.insert([{"_id": NumberInt(6), "prodID": NumberInt(4), "author": "MrsInquisitive", "text": "Sample question"}, {"_id": NumberInt(7), "prodID": NumberInt(4), "author": "MrIWantToKnow", "text": "Sample question"} ])
Show full summary
Hide full summary
Want to create your own
Mind Maps
for
free
with GoConqr?
Learn more
.
Similar
Sistema de Gestor de Base de Datos MongoDB
Edwin Herlop
RESTful Web Services with Express Framework and mongoose.
Angel Martínez Rodriguez
MIS
Harry Riley
Multiple Choice type questions
Kingsley Enyiorj
CMIS 351 Lesson 1: Information Systems and You
Adriana Vincelli-Joma
CMIS 351 Lesson 2: Business Process and Decision Making
Adriana Vincelli-Joma
Getting started with Node and Mongo
James Drummond
MongoDB Terms
Callie Toothman
MIS
Chief Keef
Android RESTful client
Angel Martínez Rodriguez
Cold War Timeline
jacksearle
Browse Library