aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema/bug_comment.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'api/graphql/schema/bug_comment.graphql')
-rw-r--r--api/graphql/schema/bug_comment.graphql26
1 files changed, 26 insertions, 0 deletions
diff --git a/api/graphql/schema/bug_comment.graphql b/api/graphql/schema/bug_comment.graphql
new file mode 100644
index 00000000..916d31c8
--- /dev/null
+++ b/api/graphql/schema/bug_comment.graphql
@@ -0,0 +1,26 @@
+"""Represents a comment on a bug."""
+type BugComment implements Authored
+@goModel(model: "github.com/git-bug/git-bug/entities/bug.Comment") {
+ id: CombinedId! @goField(name: "CombinedId")
+
+ """The author of this comment."""
+ author: Identity!
+
+ """The message of this comment."""
+ message: String!
+
+ """All media's hash referenced in this comment"""
+ files: [Hash!]!
+}
+
+type BugCommentConnection {
+ edges: [BugCommentEdge!]!
+ nodes: [BugComment!]!
+ pageInfo: PageInfo!
+ totalCount: Int!
+}
+
+type BugCommentEdge {
+ cursor: String!
+ node: BugComment!
+}