GraphQL errors
A GraphQL HTTP response can containerrors even when the transport request completed. Check both data and errors; do not treat HTTP 200 alone as application success.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Handle GraphQL and REST failures, cursor connections, retries, and changing school data.
errors even when the transport request completed. Check both data and errors; do not treat HTTP 200 alone as application success.
| Error class | Client response |
|---|---|
| Authentication | Refresh once when appropriate, otherwise sign out |
| Authorization | Stop the action and update the UI to reflect unavailable access |
| Validation | Preserve inputs and show the server message near the action or field |
| Not found | Remove stale selection and return to an available list |
| Rate limit | Disable repeated submission and retry only after the indicated window |
| Provider or temporary failure | Keep persisted Kralis state authoritative and offer a safe retry |
query ListStudents($first: Int!, $after: String) {
students(first: $first, after: $after) {
edges {
node {
pk
username
fullName
}
}
pageInfo {
hasNextPage
endCursor
}
totalCount
}
}
Was this page helpful?
