A GraphQL API for managing Products, Orders, Customers, Employees, Offices, and Payments. This API allows performing CRUD operations on all entities and exploring relationships between them. Built using Apollo Server and Node.js.
-
GraphQL Queries
- Retrieve all or specific records for
Products,Orders,Customers,Employees,Offices,Payments,OrderProducts, andProductlines. - Explore relationships between entities:
- Products → Productlines
- Orders → Customers → Employees
- Payments → Customers
- Employees → Offices and subordinates
- Retrieve all or specific records for
-
GraphQL Mutations
- Create, update, and delete records for all entities.
-
In-Memory Database
- Sample dataset stored in
db.js.
- Sample dataset stored in
-
Relationships
- Supports nested queries, e.g., fetch orders with their products and customer details.
- Node.js
- Apollo Server v5
- GraphQL
- JavaScript (ES Modules)
- Optional: VSCode for development