From 79b3d189186783c01acb194de825976a007dbd5f Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Mon, 30 Jul 2018 00:20:04 +0200 Subject: graphql: use an interface instead of an union for the operations for easier query --- graphql/schema.graphql | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'graphql/schema.graphql') 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. -- cgit