From 57e7147021e38b847213d4dc7f0e0bf0b022850d Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 28 Aug 2024 11:43:42 +0200 Subject: 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 --- api/graphql/schema/root.graphql | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'api/graphql/schema/root.graphql') diff --git a/api/graphql/schema/root.graphql b/api/graphql/schema/root.graphql index e3c76c03..721698b0 100644 --- a/api/graphql/schema/root.graphql +++ b/api/graphql/schema/root.graphql @@ -3,23 +3,4 @@ type Query { repository(ref: String): Repository } -type Mutation { - """Create a new bug""" - newBug(input: NewBugInput!): NewBugPayload! - """Add a new comment to a bug""" - addComment(input: AddCommentInput!): AddCommentPayload! - """Add a new comment to a bug and close it""" - addCommentAndClose(input: AddCommentAndCloseBugInput!): AddCommentAndCloseBugPayload! - """Add a new comment to a bug and reopen it""" - addCommentAndReopen(input: AddCommentAndReopenBugInput!): AddCommentAndReopenBugPayload! - """Change a comment of a bug""" - editComment(input: EditCommentInput!): EditCommentPayload! - """Add or remove a set of label on a bug""" - changeLabels(input: ChangeLabelInput): ChangeLabelPayload! - """Change a bug's status to open""" - openBug(input: OpenBugInput!): OpenBugPayload! - """Change a bug's status to closed""" - closeBug(input: CloseBugInput!): CloseBugPayload! - """Change a bug's title""" - setTitle(input: SetTitleInput!): SetTitlePayload! -} +type Mutation # See each entity mutations -- cgit