Adds Tags to the graphql.

This commit is contained in:
gaba
2017-02-09 12:23:40 -08:00
parent f2341ca9d3
commit 1c26e64c71
4 changed files with 23 additions and 8 deletions
+19
View File
@@ -63,12 +63,26 @@ type User {
comments(query: CommentsQuery): [Comment]
}
type Tag {
# the actual tag for the comment.
name: COMMENT_TAG
# the user that assigned the tag. If NULL then the system automatically tagged it.
assigned_by: User
# the time when the tag was assigned.
created_at: Date!
}
type Comment {
id: ID!
# the actual comment data.
body: String!
# the tags on the comment
tags: [Tag]
# the user who authored the comment.
user: User
@@ -165,6 +179,11 @@ type Asset {
created_at: Date
}
enum COMMENT_TAG {
# For the comments submitted by staff members (ADMIN or MODERATOR users).
STAFF
}
enum COMMENT_STATUS {
ACCEPTED
REJECTED