diff options
author | Michael Muré <batolettre@gmail.com> | 2019-06-23 21:36:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-23 21:36:42 +0200 |
commit | 54e95cf36f4e50d4175f78410f3dc504a7e34179 (patch) | |
tree | 356011d5d539d259a696fe00fe6edb174b7ec268 /graphql/schema/root.graphql | |
parent | 5bae915b53ed2bb4f222db2fdc73852099b96fd2 (diff) | |
parent | 17cbe457d2d782bee914680b38fa101c9327b811 (diff) | |
download | git-bug-54e95cf36f4e50d4175f78410f3dc504a7e34179.tar.gz |
Merge pull request #171 from MichaelMure/graphql-mutation-relay
Graphql mutation relay
Diffstat (limited to 'graphql/schema/root.graphql')
-rw-r--r-- | graphql/schema/root.graphql | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/graphql/schema/root.graphql b/graphql/schema/root.graphql index 2d430aa5..f66272ca 100644 --- a/graphql/schema/root.graphql +++ b/graphql/schema/root.graphql @@ -1,16 +1,25 @@ type Query { + """The default unnamend repository.""" defaultRepository: Repository - repository(id: String!): Repository + """Access a repository by reference/name.""" + repository(ref: String!): Repository } type Mutation { - newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug! - - addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug! - changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug! - open(repoRef: String, prefix: String!): Bug! - close(repoRef: String, prefix: String!): Bug! - setTitle(repoRef: String, prefix: String!, title: String!): Bug! - - commit(repoRef: String, prefix: String!): Bug! + """Create a new bug""" + newBug(input: NewBugInput!): NewBugPayload! + """Add a new comment to a bug""" + addComment(input: AddCommentInput!): AddCommentPayload! + """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! + """Commit write the pending operations into storage. This mutation fail if nothing is pending""" + commit(input: CommitInput!): CommitPayload! + """Commit write the pending operations into storage. This mutation succed if nothing is pending""" + commitAsNeeded(input: CommitAsNeededInput!): CommitAsNeededPayload! } |