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/resolvers/bug_root.go | |
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/resolvers/bug_root.go')
-rw-r--r-- | api/graphql/resolvers/bug_root.go | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/api/graphql/resolvers/bug_root.go b/api/graphql/resolvers/bug_root.go new file mode 100644 index 00000000..2013a066 --- /dev/null +++ b/api/graphql/resolvers/bug_root.go @@ -0,0 +1,59 @@ +package resolvers + +import ( + "github.com/git-bug/git-bug/api/graphql/graph" +) + +type bugRootSubResolver struct{} + +func (bugRootSubResolver) BugAddCommentOperation() graph.BugAddCommentOperationResolver { + return &bugAddCommentOperationResolver{} +} + +func (bugRootSubResolver) BugAddCommentTimelineItem() graph.BugAddCommentTimelineItemResolver { + return &bugAddCommentTimelineItemResolver{} +} + +func (r bugRootSubResolver) BugComment() graph.BugCommentResolver { + return &commentResolver{} +} + +func (bugRootSubResolver) BugCommentHistoryStep() graph.BugCommentHistoryStepResolver { + return &bugCommentHistoryStepResolver{} +} + +func (bugRootSubResolver) BugCreateOperation() graph.BugCreateOperationResolver { + return &bugCreateOperationResolver{} +} + +func (bugRootSubResolver) BugCreateTimelineItem() graph.BugCreateTimelineItemResolver { + return &bugCreateTimelineItemResolver{} +} + +func (r bugRootSubResolver) BugEditCommentOperation() graph.BugEditCommentOperationResolver { + return &bugEditCommentOperationResolver{} +} + +func (bugRootSubResolver) BugLabelChangeOperation() graph.BugLabelChangeOperationResolver { + return &bugLabelChangeOperationResolver{} +} + +func (r bugRootSubResolver) BugLabelChangeTimelineItem() graph.BugLabelChangeTimelineItemResolver { + return &bugLabelChangeTimelineItem{} +} + +func (bugRootSubResolver) BugSetStatusOperation() graph.BugSetStatusOperationResolver { + return &bugSetStatusOperationResolver{} +} + +func (r bugRootSubResolver) BugSetStatusTimelineItem() graph.BugSetStatusTimelineItemResolver { + return &bugSetStatusTimelineItem{} +} + +func (r bugRootSubResolver) BugSetTitleOperation() graph.BugSetTitleOperationResolver { + return &bugSetTitleOperationResolver{} +} + +func (r bugRootSubResolver) BugSetTitleTimelineItem() graph.BugSetTitleTimelineItemResolver { + return &bugSetTitleTimelineItem{} +} |