Mod Queue Working

This commit is contained in:
Belen Curcio
2017-02-08 12:39:35 -03:00
parent 6a6574239f
commit fab0c7e74d
@@ -1,21 +1,27 @@
#import "../fragments/commentView.graphql"
query ($asset_id: ID!) {
premod: comments(query: {
statuses: [PREMOD],
all: comments(query: {
statuses: [ACCEPTED, REJECTED, PREMOD],
asset_id: $asset_id
}) {
...commentView
}
premod: comments(query: {
statuses: [PREMOD],
asset_id: $asset_id
}) {
...commentView
}
flagged: comments(query: {
action_type: FLAG,
asset_id: $asset_id
action_type: FLAG,
asset_id: $asset_id
}) {
...commentView
}
all: comments(query: {
statuses: [ACCEPTED],
asset_id: $asset_id
rejected: comments(query: {
statuses: [REJECTED],
asset_id: $asset_id
}) {
...commentView
}
@@ -25,10 +31,4 @@ query ($asset_id: ID!) {
}) {
...commentView
}
rejected: comments(query: {
statuses: [REJECTED],
asset_id: $asset_id
}) {
...commentView
}
}