diff --git a/js/customElements/newComment.js b/js/customElements/newComment.js index 99defa717e10e31a5f8f10b138d78317f4075bb5..54f0e4bd0b76e41823d987df4d814c3de0cd7e86 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,