April 2020
Intermediate to advanced
716 pages
18h 55m
English
To store the orders in the backend, we will define a Schema for the order model that will record order details including the customer details, payment information, and an array of the products ordered. The structure of each product in this array of products ordered will be defined in a separate subschema called CartItemSchema. In the following sections, we will define these schemas so that we can store orders and cart items in the database.