Files
bruno/packages/bruno-tests/collection/graphql/mutation.bru
Sid a8542c7312 Replace SpaceX external API with local graphql-yoga mock server (#7471)
* chore: switch to locally hosted graphql server

* chore: additional graphql check

* chore: error handling
2026-03-13 16:00:08 +05:30

37 lines
402 B
Plaintext

meta {
name: mutation
type: graphql
seq: 3
}
post {
url: {{localhost}}/api/graphql
body: graphql
auth: inherit
}
body:graphql {
mutation create($id: String!) {
create(payload: { id: $id }) {
success
}
}
}
body:graphql:vars {
{
"id":"1"
}
}
assert {
res.status: eq 200
res.body.data.create.success: eq true
}
settings {
encodeUrl: true
timeout: 0
}