mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-03-01 12:44:28 +00:00
29 lines
577 B
TypeScript
29 lines
577 B
TypeScript
import { gql } from 'graphql-tag'
|
|
|
|
export const fileReport = gql`
|
|
mutation ($resourceId: ID!, $reasonCategory: ReasonCategory!, $reasonDescription: String!) {
|
|
fileReport(
|
|
resourceId: $resourceId
|
|
reasonCategory: $reasonCategory
|
|
reasonDescription: $reasonDescription
|
|
) {
|
|
createdAt
|
|
reasonCategory
|
|
reasonDescription
|
|
reportId
|
|
resource {
|
|
__typename
|
|
... on User {
|
|
name
|
|
}
|
|
... on Post {
|
|
title
|
|
}
|
|
... on Comment {
|
|
content
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|