# GraphQL API testing and validation of data and errors

Source: https://checkcraft.ru/en/guides/graphql-response-testing.html · updated 2026-11-24

Set query and variables in Checkcraft and distinguish HTTP success from GraphQL errors and partial data.

Practical workflow

Checkcraft is a desktop app for checking APIs and logs without code, with a free edition. [Download, no sign-up →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

A GraphQL response arrived, but the expected object is missing. Inspect data and errors separately.

Checkcraft · 10 October 2026

Get help with your first test →

## Set the query

Choose the GraphQL body type in the HTTP request editor. Supply query, variables and, if needed, operationName. The example requires your test endpoint to expose an order field; it is not a request to an available public service.

```
query Order($id: ID!) { order(id: $id) { id status total } }
```

## Supply variables

Paste this JSON into variables and verify endpoint, authentication and content type. Checkcraft creates a body with query and variables, adding a nonempty operationName. Valid JSON variables may still violate server schema types.

Repeating checks like this by hand? Checkcraft saves them and reruns them in one click. [Download Free →](https://checkcraft.ru/en/download-checkcraft.html#free-download)

```
{"id":"ORD-1042"}
```

## Validate data and errors

Assert the relevant fields in data.order and handle errors explicitly. Partial data and errors may coexist. Define an expected status and no-error condition for a passing case, then test an unknown ID separately.

## Limit the conclusion

Checking returned JSON is not an audit of the entire GraphQL schema. This workflow covers HTTP request and response testing. Subscriptions, federation and performance require separate workflows. Start with one operation and a deliberately failing result.

Next step

## Repeat this on your own API

Checkcraft is a desktop app that saves API response checks without code and shows what did not match. Start with a sample, then use your own sanitized data. Free runs on Windows and Linux with no time limit.

[Download Free](https://checkcraft.ru/en/download-checkcraft.html#free-download) · [Download and first run](https://checkcraft.ru/en/download-checkcraft.html)

No sign-up or email needed, the archive is ready in a couple of minutes. See the [edition limits](https://checkcraft.ru/en/pricing.html).

## References

[GraphQL response](https://graphql.org/learn/response/)

## Continue with a related task

[Validate API status codes, headers and response time](https://checkcraft.ru/en/guides/http-response-checks.html) · [Validate JSON and XML API responses](https://checkcraft.ru/en/guides/json-xml-response-validation.html) · [Configure API request authentication](https://checkcraft.ru/en/guides/api-request-authorization.html)

Start with the linked example and compare its result with your own test requirement.

Ask a person

## Get help with your first test

Tell us what you want to test or where you got stuck. We can help you start Checkcraft, choose an example and understand your first run. You can ask before downloading.

[Ask in Telegram](https://t.me/checkcraftchat)Send an email

The Telegram group is public: do not post passwords, tokens or confidential work data. A description of your task is enough to start.

You can also email us support@checkcraft.ru

Page card: /ai/pages/en/guides/graphql-response-testing.md
