2018-07-11 10:13:07 +03:00
|
|
|
description: Inserts article data via GraphQL mutation
|
|
|
|
url: /v1alpha1/graphql
|
|
|
|
status: 200
|
|
|
|
query:
|
|
|
|
query: |
|
|
|
|
mutation insert_article {
|
|
|
|
insert_article (
|
|
|
|
objects: [
|
|
|
|
{
|
|
|
|
title: "Article 1",
|
|
|
|
content: "Sample article content",
|
2018-07-20 11:19:06 +03:00
|
|
|
author_id: 1,
|
|
|
|
is_published: true
|
2018-07-11 10:13:07 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Article 2",
|
|
|
|
content: "Sample article content",
|
2018-07-20 11:19:06 +03:00
|
|
|
author_id: 1,
|
|
|
|
is_published: true
|
2018-07-11 10:13:07 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Article 3",
|
|
|
|
content: "Sample article content",
|
2018-07-20 11:19:06 +03:00
|
|
|
author_id: 2,
|
|
|
|
is_published: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Article 4",
|
|
|
|
content: "Sample article content",
|
|
|
|
author_id: 1,
|
|
|
|
is_published: false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "Article 5",
|
|
|
|
content: "Sample article content",
|
|
|
|
author_id: 2,
|
|
|
|
is_published: false
|
2018-07-11 10:13:07 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
) {
|
|
|
|
returning {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
content
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|