GraphQL API Overview#
The Afosto GraphQL API provides a single endpoint for all operations. Use queries to fetch data and mutations to create or modify resources.
Endpoint#
All requests are POST requests with a JSON body containing your query and any variables.
Request format#
What's available#
| Name | Type | Required | Description |
|---|---|---|---|
Queries | Section | Optional | Fetch products, orders, customers, and more |
Mutations | Section | Optional | Create, update, and delete resources |
Types & Scalars | Section | Optional | All available types, enums, and custom scalars |
Pagination | Section | Optional | How to paginate through large result sets |
Error Handling | Section | Optional | Understanding and handling API errors |