O'Reilly logo

Pro Hibernate and MongoDB by Anghel Leonard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required