CHAPTER 8
MongoDB e-Commerce Database Querying
In Chapter 7 we developed a MongoDB database model for an e-commerce application. Now we’ll write the necessary queries for using the database and see how to perform common tasks for an e-commerce platform, including:
- Display categories of products.
- Display promotional products.
- Display products from a category (with pagination).
- Search for a product by name (or by the words in the name).
- Find a customer (for login, editing the profile, saving orders, and so on).
- Save an order for synchronizing the shopping cart with the database.
- Check the inventory for a certain product and quantity.
- Restore the ...
Get Pro Hibernate and MongoDB now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.