From 93e6c0af32cdca30c8d4695e89f70ad808bd01e1 Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Thu, 25 May 2017 18:57:42 +0700 Subject: [PATCH] Use default response fragments 2 --- client/coral-framework/graphql/mutations.js | 39 --------------------- 1 file changed, 39 deletions(-) diff --git a/client/coral-framework/graphql/mutations.js b/client/coral-framework/graphql/mutations.js index 2af4c53ce..d9c3cfe45 100644 --- a/client/coral-framework/graphql/mutations.js +++ b/client/coral-framework/graphql/mutations.js @@ -6,9 +6,6 @@ export const withSetCommentStatus = withMutation( mutation SetCommentStatus($commentId: ID!, $status: COMMENT_STATUS!){ setCommentStatus(id: $commentId, status: $status) { ...SetCommentStatusResponse - errors { - translation_key - } } } `, { @@ -29,9 +26,6 @@ export const withSuspendUser = withMutation( mutation SuspendUser($input: SuspendUserInput!) { suspendUser(input: $input) { ...SuspendUserResponse - errors { - translation_key - } } } `, { @@ -51,9 +45,6 @@ export const withRejectUsername = withMutation( mutation RejectUsername($input: RejectUsernameInput!) { rejectUsername(input: $input) { ...RejectUsernameResponse - errors { - translation_key - } } } `, { @@ -73,9 +64,6 @@ export const withSetUserStatus = withMutation( mutation SetUserStatus($userId: ID!, $status: USER_STATUS!) { setUserStatus(id: $userId, status: $status) { ...SetUserStatusResponse - errors { - translation_key - } } } `, { @@ -96,9 +84,6 @@ export const withPostComment = withMutation( mutation PostComment($comment: CreateCommentInput!) { createComment(comment: $comment) { ...CreateCommentResponse - errors { - translation_key - } } } `, { @@ -118,9 +103,6 @@ export const withEditComment = withMutation( mutation EditComment($id: ID!, $asset_id: ID!, $edit: EditCommentInput) { editComment(id:$id, asset_id:$asset_id, edit:$edit) { ...EditCommentResponse - errors { - translation_key - } } } `, { @@ -142,9 +124,6 @@ export const withPostFlag = withMutation( mutation PostFlag($flag: CreateFlagInput!) { createFlag(flag: $flag) { ...CreateFlagResponse - errors { - translation_key - } } } `, { @@ -163,9 +142,6 @@ export const withPostDontAgree = withMutation( mutation CreateDontAgree($dontagree: CreateDontAgreeInput!) { createDontAgree(dontagree: $dontagree) { ...CreateDontAgreeResponse - errors { - translation_key - } } } `, { @@ -184,9 +160,6 @@ export const withDeleteAction = withMutation( mutation DeleteAction($id: ID!) { deleteAction(id:$id) { ...DeleteActionResponse - errors { - translation_key - } } } `, { @@ -205,9 +178,6 @@ export const withAddCommentTag = withMutation( mutation AddCommentTag($id: ID!, $tag: String!) { addCommentTag(id:$id, tag:$tag) { ...AddCommentTagResponse - errors { - translation_key - } } } `, { @@ -227,9 +197,6 @@ export const withRemoveCommentTag = withMutation( mutation RemoveCommentTag($id: ID!, $tag: String!) { removeCommentTag(id:$id, tag:$tag) { ...RemoveCommentTagResponse - errors { - translation_key - } } } `, { @@ -249,9 +216,6 @@ export const withIgnoreUser = withMutation( mutation IgnoreUser($id: ID!) { ignoreUser(id:$id) { ...IgnoreUserResponse - errors { - translation_key - } } } `, { @@ -270,9 +234,6 @@ export const withStopIgnoringUser = withMutation( mutation StopIgnoringUser($id: ID!) { stopIgnoringUser(id:$id) { ...StopIgnoringUserResponse - errors { - translation_key - } } } `, {