GraphQL Query Examples
Common query patterns for the Sample GraphQL API
This page provides example queries you can use with the Sample GraphQL API. Each example includes the query, variables, and expected response.
Query Examples
Get User by ID
List Users (Paginated)
Create User
Update User
Delete User
Retrieve a single user with all their fields:
Variables:
Response:
Error Handling
GraphQL errors are returned in the errors array alongside partial data: