Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

MongoDB Notes

Descrição

596 Management Information Systems (Data Technologies) Mapa Mental sobre MongoDB Notes, criado por Callie Toothman em 14-07-2016.
Callie Toothman
Mapa Mental por Callie Toothman, atualizado more than 1 year ago
Callie Toothman
Criado por Callie Toothman quase 9 anos atrás
242
0
1 2 3 4 5 (0)

Resumo de Recurso

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"} ])

                                                  0 comentários

                                                  There are no comments, be the first and leave one below:

                                                  Semelhante

                                                  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
                                                  Atualidades- Notícias
                                                  Nathália Marins