mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-02-06 09:56:03 +00:00
* externalize gql queries in backend specs * externalize all queries & mutations where easily possible missing change * rename old queries & remove unnecessary function call * fix tests - notifications * fix tests - moderation * remove _CreatePostMutation file * remove _filterPosts & _postQuery files
38 lines
667 B
TypeScript
38 lines
667 B
TypeScript
import gql from 'graphql-tag'
|
|
|
|
export const review = gql`
|
|
mutation ($resourceId: ID!, $disable: Boolean, $closed: Boolean) {
|
|
review(resourceId: $resourceId, disable: $disable, closed: $closed) {
|
|
createdAt
|
|
updatedAt
|
|
resource {
|
|
__typename
|
|
... on User {
|
|
id
|
|
disabled
|
|
}
|
|
... on Post {
|
|
id
|
|
disabled
|
|
}
|
|
... on Comment {
|
|
id
|
|
disabled
|
|
}
|
|
}
|
|
report {
|
|
id
|
|
createdAt
|
|
updatedAt
|
|
closed
|
|
reviewed {
|
|
createdAt
|
|
moderator {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|