mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-05 14:27:59 +03:00
29 lines
566 B
YAML
29 lines
566 B
YAML
description: Upserts article data via GraphQL mutation
|
|
url: /v1alpha1/graphql
|
|
status: 200
|
|
query:
|
|
query: |
|
|
mutation insert_article {
|
|
insert_article (
|
|
objects: [
|
|
{
|
|
content: "Updated Article 1 content",
|
|
id: 1
|
|
},
|
|
{
|
|
content: "Updated Article 2 content",
|
|
id: 2
|
|
}
|
|
],
|
|
on_conflict: {
|
|
constraint: article_pkey,
|
|
action: update
|
|
}
|
|
) {
|
|
returning {
|
|
title
|
|
content
|
|
}
|
|
}
|
|
}
|