app/frontend/comments/add_comment_form.mutation.graphql in decidim-comments-0.0.3 vs app/frontend/comments/add_comment_form.mutation.graphql in decidim-comments-0.0.5
- old
+ new
@@ -1,5 +1,7 @@
mutation addComment($commentableId: String!, $commentableType: String!, $body: String!, $alignment: Int, $userGroupId: ID) {
- addComment(commentableId: $commentableId, commentableType: $commentableType, body: $body, alignment: $alignment, userGroupId: $userGroupId) {
- ...CommentThread
+ commentable(id: $commentableId, type: $commentableType) {
+ addComment(body: $body, alignment: $alignment, userGroupId: $userGroupId) {
+ ...CommentThread
+ }
}
-}
\ No newline at end of file
+}