mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-27 14:44:07 +00:00
* chore: switch to locally hosted graphql server * chore: additional graphql check * chore: error handling
37 lines
402 B
Plaintext
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
|
|
}
|