mirror of
https://github.com/wassname/talk.git
synced 2026-10-02 12:50:49 +08:00
Adding errors response
This commit is contained in:
1 parent
594b87208a
commit
0403c46c6c
3 files changed
+10
-4
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user