From 8664a16bfc5e4603f675e4c7e7ff19b771895989 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 3 Feb 2017 16:05:27 -0300 Subject: [PATCH] modQueue Query --- .../src/graphql/queries/modQueueQuery.graphql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/coral-admin/src/graphql/queries/modQueueQuery.graphql diff --git a/client/coral-admin/src/graphql/queries/modQueueQuery.graphql b/client/coral-admin/src/graphql/queries/modQueueQuery.graphql new file mode 100644 index 000000000..e26e440f8 --- /dev/null +++ b/client/coral-admin/src/graphql/queries/modQueueQuery.graphql @@ -0,0 +1,20 @@ +query ModQueue { + flagged_comments: comments(query: { + action_type: FLAG, + asset_id: $asset_id + }) { + id + } + accepted_comments: comments(query: { + statuses: [ACCEPTED], + asset_id: $asset_id + }) { + id + } + rejected_comments: comments(query: { + statuses: [REJECTED], + asset_id: $asset_id + }) { + id + } +}