aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-12-23 17:55:41 +0100
committerMichael Muré <batolettre@gmail.com>2018-12-23 17:55:41 +0100
commit0d5bd6b18afde898e610746657a87080235f6222 (patch)
treebe714ae264bcda3aff003c4e4080687e628aeec3 /graphql/models
parent1410a1af75b1ab9ea3f980a7e372728f9a123abf (diff)
downloadgit-bug-0d5bd6b18afde898e610746657a87080235f6222.tar.gz
graphql: now that it's possible, split the schema for clarity
Diffstat (limited to 'graphql/models')
-rw-r--r--graphql/models/gen_models.go4
1 files changed, 4 insertions, 0 deletions
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"`