aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models/gen_models.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-14 12:40:31 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-14 12:41:59 +0200
commitb478cd1bcb4756b20f7f4b15fcf81f23e1a60a02 (patch)
tree8ce232dcab3dd00708f8ba66c334472457e5980d /graphql/models/gen_models.go
parenta3fc9abb921f5ce7084d6ab7473442d0b72b1d78 (diff)
downloadgit-bug-b478cd1bcb4756b20f7f4b15fcf81f23e1a60a02.tar.gz
graphql: update gqlgen to 0.5.1
fix #6
Diffstat (limited to 'graphql/models/gen_models.go')
-rw-r--r--graphql/models/gen_models.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index 1ed46029..23a25814 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -1,4 +1,4 @@
-// Code generated by github.com/vektah/gqlgen, DO NOT EDIT.
+// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.
package models
@@ -10,37 +10,48 @@ import (
bug "github.com/MichaelMure/git-bug/bug"
)
+// An object that has an author.
type Authored interface{}
+
+// The connection type for Bug.
type BugConnection struct {
Edges []BugEdge `json:"edges"`
Nodes []bug.Snapshot `json:"nodes"`
PageInfo PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
+
+// An edge in a connection.
type BugEdge struct {
Cursor string `json:"cursor"`
Node bug.Snapshot `json:"node"`
}
+
type CommentConnection struct {
Edges []CommentEdge `json:"edges"`
Nodes []bug.Comment `json:"nodes"`
PageInfo PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
+
type CommentEdge struct {
Cursor string `json:"cursor"`
Node bug.Comment `json:"node"`
}
+
type OperationConnection struct {
Edges []OperationEdge `json:"edges"`
Nodes []bug.Operation `json:"nodes"`
PageInfo PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
+
type OperationEdge struct {
Cursor string `json:"cursor"`
Node bug.Operation `json:"node"`
}
+
+// Information about pagination in a connection.
type PageInfo struct {
HasNextPage bool `json:"hasNextPage"`
HasPreviousPage bool `json:"hasPreviousPage"`