diff options
author | Michael Muré <batolettre@gmail.com> | 2018-12-23 17:55:41 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-12-23 17:55:41 +0100 |
commit | 0d5bd6b18afde898e610746657a87080235f6222 (patch) | |
tree | be714ae264bcda3aff003c4e4080687e628aeec3 /graphql/root.graphql | |
parent | 1410a1af75b1ab9ea3f980a7e372728f9a123abf (diff) | |
download | git-bug-0d5bd6b18afde898e610746657a87080235f6222.tar.gz |
graphql: now that it's possible, split the schema for clarity
Diffstat (limited to 'graphql/root.graphql')
-rw-r--r-- | graphql/root.graphql | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/graphql/root.graphql b/graphql/root.graphql new file mode 100644 index 00000000..fd8419fa --- /dev/null +++ b/graphql/root.graphql @@ -0,0 +1,38 @@ +scalar Time +scalar Label +scalar Hash + +"""Information about pagination in a connection.""" +type PageInfo { + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! + """When paginating backwards, the cursor to continue.""" + startCursor: String! + """When paginating forwards, the cursor to continue.""" + endCursor: String! +} + +"""An object that has an author.""" +interface Authored { + """The author of this object.""" + author: Person! +} + +type Query { + defaultRepository: Repository + repository(id: 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! +}
\ No newline at end of file |