aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-30 00:20:04 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-30 00:20:04 +0200
commit79b3d189186783c01acb194de825976a007dbd5f (patch)
tree8369931fc77e22dff7b93de3c64d46e743592e4a /graphql/schema.graphql
parent5b70e3452a4685112fd005fef0727930ebd2adaf (diff)
downloadgit-bug-79b3d189186783c01acb194de825976a007dbd5f.tar.gz
graphql: use an interface instead of an union for the operations for easier query
Diffstat (limited to 'graphql/schema.graphql')
-rw-r--r--graphql/schema.graphql9
1 files changed, 1 insertions, 8 deletions
diff --git a/graphql/schema.graphql b/graphql/schema.graphql
index 14b2bec5..6aadfaf1 100644
--- a/graphql/schema.graphql
+++ b/graphql/schema.graphql
@@ -79,7 +79,7 @@ type OperationConnection {
type OperationEdge {
cursor: String!
- node: OperationUnion!
+ node: Operation!
}
# An operation applied to a bug.
@@ -128,13 +128,6 @@ type LabelChangeOperation implements Operation, Authored {
removed: [Label!]!
}
-union OperationUnion =
- CreateOperation
- | SetTitleOperation
- | AddCommentOperation
- | SetStatusOperation
- | LabelChangeOperation
-
# The connection type for Bug.
type BugConnection {
# A list of edges.