Make GraphQL parameters strict following Absinthe 1.7 validating

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-03-23 11:48:23 +01:00
parent 3d50f2d90d
commit a461674f9d
5 changed files with 5 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ defmodule Mobilizon.GraphQL.Resolvers.CommentTest do
describe "Comment Resolver" do
@create_comment_mutation """
mutation CreateComment($text: String!, $eventId: ID, $inReplyToCommentId: ID) {
mutation CreateComment($text: String!, $eventId: ID!, $inReplyToCommentId: ID) {
createComment(text: $text, eventId: $eventId, inReplyToCommentId: $inReplyToCommentId) {
id,
text,