aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models
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/models
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/models')
-rw-r--r--graphql/models/gen_models.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index a59288ec..aacb0d92 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -42,10 +42,9 @@ type OperationConnection struct {
TotalCount int `json:"totalCount"`
}
type OperationEdge struct {
- Cursor string `json:"cursor"`
- Node OperationUnion `json:"node"`
+ Cursor string `json:"cursor"`
+ Node Operation `json:"node"`
}
-type OperationUnion interface{}
type PageInfo struct {
HasNextPage bool `json:"hasNextPage"`
HasPreviousPage bool `json:"hasPreviousPage"`