Overview
EverShop uses REST-style mutations through API endpoints rather than GraphQL mutations. The GraphQL schema provides API URLs as fields on types, which you can use to perform create, update, and delete operations.Mutation Pattern
Instead of traditional GraphQL mutations, EverShop provides API endpoint URLs in query responses:Cart Operations
Add Item to Cart
Update Cart Item Quantity
Remove Item from Cart
Add Shipping Address
Add Shipping Method
Add Payment Method
Add Contact Information
Add Shipping Note
Checkout
Customer Operations
Add Customer Address
Update Customer Address
Delete Customer Address
Product Management (Admin)
Update Product
Delete Product
Add Product to Category
Remove Product from Category
Add Variant to Product
Remove Variant
Category Management (Admin)
Update Category
Delete Category
Order Management (Admin)
Create Shipment
Update Shipment
Cancel Order
Customer Management (Admin)
Update Customer
Delete Customer
CMS Management (Admin)
Update CMS Page
Delete CMS Page
Best Practices
Error Handling
Error Handling
Always handle errors from API calls:
Authentication
Authentication
Include authentication credentials for authenticated requests:
Optimistic Updates
Optimistic Updates
Update UI optimistically before server response:
Rate Limiting
Rate Limiting
Implement rate limiting for mutation requests:
Response Format
All API endpoints return JSON responses:Success Response
Error Response
Next Steps
Queries
Explore available GraphQL queries
Types
View all GraphQL types and their fields