use mutation query
This commit is contained in:
parent
aa670a0512
commit
a6a470f8aa
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ class newComment extends HTMLElement {
|
||||||
}
|
}
|
||||||
|
|
||||||
var graphql = JSON.stringify({
|
var graphql = JSON.stringify({
|
||||||
query: 'query($article: String!, $name: String!, $hCaptchaResponse: String!, $email: String!, $comment: String!) { newComment(article: $article, name: $name, email: $email, comment: $comment, hCaptchaResponse: $hCaptchaResponse)}',
|
query: 'mutation($article: String!, $name: String!, $hCaptchaResponse: String!, $email: String!, $comment: String!) { newComment(article: $article, name: $name, email: $email, comment: $comment, hCaptchaResponse: $hCaptchaResponse)}',
|
||||||
variables: {
|
variables: {
|
||||||
"article": pageName,
|
"article": pageName,
|
||||||
"name": nameInput.value,
|
"name": nameInput.value,
|
||||||
|
|
Loading…
Reference in a new issue