From 0d5bd6b18afde898e610746657a87080235f6222 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Sun, 23 Dec 2018 17:55:41 +0100 Subject: graphql: now that it's possible, split the schema for clarity --- graphql/models/gen_models.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphql/models/gen_models.go') diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go index f8d6b5b2..71a6b78b 100644 --- a/graphql/models/gen_models.go +++ b/graphql/models/gen_models.go @@ -41,6 +41,7 @@ type CommentEdge struct { Node bug.Comment `json:"node"` } +// The connection type for an Operation type OperationConnection struct { Edges []OperationEdge `json:"edges"` Nodes []bug.Operation `json:"nodes"` @@ -48,6 +49,7 @@ type OperationConnection struct { TotalCount int `json:"totalCount"` } +// Represent an Operation type OperationEdge struct { Cursor string `json:"cursor"` Node bug.Operation `json:"node"` @@ -61,6 +63,7 @@ type PageInfo struct { EndCursor string `json:"endCursor"` } +// The connection type for TimelineItem type TimelineItemConnection struct { Edges []TimelineItemEdge `json:"edges"` Nodes []bug.TimelineItem `json:"nodes"` @@ -68,6 +71,7 @@ type TimelineItemConnection struct { TotalCount int `json:"totalCount"` } +// Represent a TimelineItem type TimelineItemEdge struct { Cursor string `json:"cursor"` Node bug.TimelineItem `json:"node"` -- cgit