Hygraph: API Design — Pure GraphQL
Docs-backedContent API: POST to the project's GraphQL endpoint with queries and mutations. Auto-generated queries for each model: model (single by ID/unique field), models (list with filtering), modelsConnection (paginated with aggregate counts). Auto-generated mutations: createModel, updateModel, deleteModel, publishModel, unpublishModel. Filtering uses where input types with field-specific operators. Ordering, pagination (first/skip or cursor-based), and localization (locale parameter) are built into the query schema. Asset management uses the Asset model with upload mutations. Webhooks deliver events for content lifecycle changes. The Management API provides schema operations (model and field CRUD) via GraphQL. The pure GraphQL approach is elegant for agents using GraphQL tooling but adds friction for agents preferring REST.