Skip to content

Commit

Permalink
chore: pre-moderation graphql schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Puch committed Sep 13, 2021
1 parent 86b020c commit e442f20
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/schema.graphql.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const BASE_COMMENTS = `
removed: Boolean
relatedSlug: String
reports: [CommentReport]
approvalStatus: CommentApprovalStatus
`;
const jsonParse = (json) => {
try {
Expand All @@ -35,6 +36,11 @@ module.exports = {
DISCRIMINATION
OTHER
}
enum CommentApprovalStatus {
PENDING
APPROVED
REJECTED
}
type CommentReport {
id: ID!
content: String
Expand Down Expand Up @@ -111,6 +117,7 @@ module.exports = {
authorUsername: String
threadOf: String
related: [NewCommentRelated!]!
approvalStatus: CommentApprovalStatus
}
`,
// language=GraphQL
Expand Down

0 comments on commit e442f20

Please sign in to comment.