MongoDB Notes

Description

596 Management Information Systems (Data Technologies) Mind Map on MongoDB Notes, created by Callie Toothman on 07/14/2016.
Callie Toothman
Mind Map by Callie Toothman, updated more than 1 year ago
Callie Toothman
Created by Callie Toothman over 8 years ago
198
0

Resource summary

MongoDB Notes
  1. Schema-Free
    1. Hierarchy
      1. Instance
        1. Database
          1. Collection
            1. Document
              1. Every Document has an id
                1. JSON Format
                2. Embedded
                  1. Attributes are not stored in separate collection
                    1. Implementation depends on the needs of the application
                    2. Linked
              2. Optimized to quickly retrieve relevant data
                1. Design should take into account how the application needs the data
                  1. Documentation: https://docs.mongodb.com/manual/
                    1. Extensions
                      1. Mongoose
                        1. RoboMongo
                          1. MongoChef
                          2. CRUD Operations
                            1. find
                              1. Equivalent to SELECT statement
                                1. Examples
                                  1. Minimal
                                    1. db.Products.find()
                                    2. Query + Projection
                                      1. db.Products.find({ "desc": "42in TV", "width": 41 })
                                      2. Query Only
                                        1. db.Products.find({"desc": "42in TV"})
                                        2. Projection Only
                                          1. db.Products.find({"width": 1, "height": 1, "depth": 1} )
                                          2. Arrays
                                            1. db.Products.find({ "priceHist" : {$elemMatch: { $gt: 100, $lt: 300 } } })
                                            2. Conditional Statements
                                              1. db.Products.find({"reviews.star": { $gte: 4 } })
                                              2. Embedded Collections
                                                1. db.Products.find({"editorReview.authorlname" : "Smith"} )
                                              3. Syntax
                                                1. db.collection.find(query, projection)
                                                  1. Projection: Which columns you're going to return
                                                    1. id always comes back unless id is set to false {id: 0}
                                                2. Inserts
                                                  1. Examples
                                                    1. Single
                                                      1. db.Questions.insert({"_id": NumberInt(5), "prodID": NumberInt(4), "author": "MrsInquisitive", "text": "Sample question"})
                                                      2. Multiple
                                                        1. 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

                                                  Similar

                                                  Sistema de Gestor de Base de Datos MongoDB
                                                  Edwin Herlop
                                                  RESTful Web Services with Express Framework and mongoose.
                                                  Angel Martínez Rodriguez
                                                  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
                                                  Android RESTful client
                                                  Angel Martínez Rodriguez
                                                  OCR gcse computer science
                                                  Jodie Awthinre