From e442f202aa004605dbbd09c9db6dd025d4c05e9e Mon Sep 17 00:00:00 2001 From: Tomasz Puch Date: Mon, 13 Sep 2021 16:27:23 +0200 Subject: [PATCH] chore: pre-moderation graphql schema --- config/schema.graphql.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/schema.graphql.js b/config/schema.graphql.js index 0283ca6..e80ff2d 100644 --- a/config/schema.graphql.js +++ b/config/schema.graphql.js @@ -13,6 +13,7 @@ const BASE_COMMENTS = ` removed: Boolean relatedSlug: String reports: [CommentReport] + approvalStatus: CommentApprovalStatus `; const jsonParse = (json) => { try { @@ -35,6 +36,11 @@ module.exports = { DISCRIMINATION OTHER } + enum CommentApprovalStatus { + PENDING + APPROVED + REJECTED + } type CommentReport { id: ID! content: String @@ -111,6 +117,7 @@ module.exports = { authorUsername: String threadOf: String related: [NewCommentRelated!]! + approvalStatus: CommentApprovalStatus } `, // language=GraphQL