You are previewing MongoDB: The Definitive Guide, 3rd Edition.
O'Reilly logo
MongoDB: The Definitive Guide, 3rd Edition

Book Description

Manage your data in a database system designed to support modern application development. Written by current and former members of the MongoDB team, the third edition covers new features introduced in MongoDB versions 3.0 and 3.2, and includes a preview of 3.4 features. You’ll find substantial updates on querying, indexing, aggregation, replica sets, cloud and ops manager, test setup, sharding administration, data administration, durability, monitoring, and security.

Table of Contents

  1. Foreword
  2. Preface
    1. How This Book Is Organized
      1. Getting Started with MongoDB
      2. Developing with MongoDB
      3. Replication
      4. Sharding
      5. Application Administration
      6. Server Administration
      7. Appendixes
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
    6. Acknowledgments
  3. 1. Introduction
    1. Ease of Use
    2. Designed to Scale
    3. Rich with Features...
    4. …Without Sacrificing Speed
    5. Let’s Get Started
  4. I. Introduction to MongoDB
  5. 2. Getting Started
    1. Documents
    2. Collections
      1. Dynamic Schemas
      2. Naming
    3. Databases
    4. Getting and Starting MongoDB
    5. Introduction to the MongoDB Shell
      1. Running the Shell
      2. A MongoDB Client
      3. Basic Operations with the Shell
    6. Data Types
      1. Basic Data Types
      2. Dates
      3. Arrays
      4. Embedded Documents
      5. _id and ObjectIds
    7. Using the MongoDB Shell
      1. Tips for Using the Shell
      2. Running Scripts with the Shell
      3. Creating a .mongorc.js
      4. Customizing Your Prompt
      5. Editing Complex Variables
      6. Inconvenient Collection Names
  6. 3. Creating, Updating, and Deleting Documents
    1. Inserting Documents
      1. insertMany()
      2. Insert Validation
      3. insert()
    2. Removing Documents
      1. drop()
    3. Updating Documents
      1. Document Replacement
      2. Using Update Operators
      3. Upserts
      4. Updating Multiple Documents
      5. Returning Updated Documents
  7. 4. Querying
    1. Introduction to find
      1. Specifying Which Keys to Return
      2. Limitations
    2. Query Criteria
      1. Query Conditionals
      2. OR Queries
      3. $not
      4. Conditional Semantics
    3. Type-Specific Queries
      1. null
      2. Regular Expressions
      3. Querying Arrays
      4. Querying on Embedded Documents
    4. $where Queries
      1. Server-Side Scripting
    5. Cursors
      1. Limits, Skips, and Sorts
      2. Avoiding Large Skips
      3. Advanced Query Options
      4. Immortal Cursors
    6. Database Commands
      1. How Commands Work