diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-30 00:20:04 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-30 00:20:04 +0200 |
commit | 79b3d189186783c01acb194de825976a007dbd5f (patch) | |
tree | 8369931fc77e22dff7b93de3c64d46e743592e4a /graphql/models | |
parent | 5b70e3452a4685112fd005fef0727930ebd2adaf (diff) | |
download | git-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.go | 5 |
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"` |