aboutsummaryrefslogtreecommitdiffstats
path: root/api/graphql/schema/bug_comment.graphql
blob: 916d31c81783100402d3420a62e5957362fd3add (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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!
}