Part 2. Application development in MongoDB

Part 2 of this book is a deep exploration of MongoDB’s document data model, query language, and CRUD (create, read, update, and delete) operations.

We’ll make these topics concrete by progressively designing an e-commerce data model and the CRUD operations necessary for managing such data. Each chapter will present its subject matter in a top-down fashion, first by presenting examples within the sample e-commerce application’s domain, and then by systematically filling in the details. On your first reading, you may want to read the e-commerce examples only and save the detailed material for later, or vice versa.

In chapter 4, you’ll learn some schema design principles and then construct a basic e-commerce data model for products, categories, users, orders, and product reviews. Then you’ll learn how MongoDB organizes data on the database, collection, and document levels. This chapter includes a summary of BSON’s core data types.

Chapter 5 covers MongoDB’s query language. You’ll learn how to issue common queries against the data model developed in the previous chapter. Then, in the nuts and bolts sections, you’ll see the semantics of query operators presented in detail.

Chapter 6 is all about aggregations. We’ll show you how to do some simple groupings, and also go in depth into MongoDB’s aggregation framework.

In presenting MongoDB’s update and delete operations, chapter 7 brings us full circle by showing the rationale for the e-commerce data model. You’ll learn how to maintain the category hierarchy and how to manage inventory transactionally. In addition, the update operators will be covered in detail along with the powerful findAndModify command.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset