Adding errors response

This commit is contained in:
Belen Curcio
2017-02-13 16:13:03 -03:00
parent 594b87208a
commit 0403c46c6c
3 changed files with 10 additions and 4 deletions
@@ -1,5 +1,3 @@
// acceptComment
// rejectComment
import {graphql} from 'react-apollo';
import SET_USER_STATUS from './setUserStatus.graphql';
import SET_COMMENT_STATUS from './setCommentStatus.graphql';
@@ -1,3 +1,7 @@
mutation setCommentStatus($commentId: ID!, $status: COMMENT_STATUS!){
setCommentStatus(id: $commentId, status: $status)
setCommentStatus(id: $commentId, status: $status) {
errors {
translation_key
}
}
}
@@ -1,3 +1,7 @@
mutation setUserStatus($userId: ID!, $status: USER_STATUS!) {
setUserStatus(id: $userId, status: $status)
setUserStatus(id: $userId, status: $status) {
errors {
translation_key
}
}
}