mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 14:27:59 +03:00
28 lines
476 B
YAML
28 lines
476 B
YAML
description: Inserts persons data via GraphQL mutation
|
|
url: /v1alpha1/graphql
|
|
status: 200
|
|
query:
|
|
variables:
|
|
value:
|
|
- name:
|
|
first: thelonious
|
|
last: jaha
|
|
- name:
|
|
first: clarke
|
|
last: griffin
|
|
query: |
|
|
mutation insert_person($value: jsonb) {
|
|
insert_person(
|
|
objects: [
|
|
{
|
|
details: $value
|
|
}
|
|
]
|
|
) {
|
|
returning {
|
|
id
|
|
details
|
|
}
|
|
}
|
|
}
|