diff options
author | Michael Muré <batolettre@gmail.com> | 2024-08-28 11:43:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-28 09:43:42 +0000 |
commit | 57e7147021e38b847213d4dc7f0e0bf0b022850d (patch) | |
tree | 882650697950003e2325f0815353032a8596ca1d /api/graphql/schema/bug.graphql | |
parent | e45c3c5ee6dc5650fd8c3f480d9e09e5f3b221fd (diff) | |
download | git-bug-57e7147021e38b847213d4dc7f0e0bf0b022850d.tar.gz |
graphql: properly namespace Bug to make space for other entities (#1254)
Also: use gqlgen directives to help the type auto-binding
Missing:
- namespace mutations
- adapt the webUI queries
Diffstat (limited to 'api/graphql/schema/bug.graphql')
-rw-r--r-- | api/graphql/schema/bug.graphql | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/api/graphql/schema/bug.graphql b/api/graphql/schema/bug.graphql index 17d3a897..f06f2f84 100644 --- a/api/graphql/schema/bug.graphql +++ b/api/graphql/schema/bug.graphql @@ -1,34 +1,3 @@ -"""Represents a comment on a bug.""" -type Comment implements Authored { - id: 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 CommentConnection { - edges: [CommentEdge!]! - nodes: [Comment!]! - pageInfo: PageInfo! - totalCount: Int! -} - -type CommentEdge { - cursor: String! - node: Comment! -} - -enum Status { - OPEN - CLOSED -} - type Bug implements Authored { """The identifier for this bug""" id: ID! @@ -75,7 +44,7 @@ type Bug implements Authored { first: Int """Returns the last _n_ elements from the list.""" last: Int - ): CommentConnection! + ): BugCommentConnection! timeline( """Returns the elements in the list that come after the specified cursor.""" @@ -86,7 +55,7 @@ type Bug implements Authored { first: Int """Returns the last _n_ elements from the list.""" last: Int - ): TimelineItemConnection! + ): BugTimelineItemConnection! operations( """Returns the elements in the list that come after the specified cursor.""" |