diff --git a/js/customElements/newComment.js b/js/customElements/newComment.js index 99defa7..54f0e4b 100644 --- a/js/customElements/newComment.js +++ b/js/customElements/newComment.js @@ -105,7 +105,7 @@ class newComment extends HTMLElement { } 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: { "article": pageName, "name": nameInput.value,