aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/models/gen_models.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-05-15 16:57:30 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-05-15 16:57:30 +0200
commit8bab279114f06f10e22435b0caf9002201831555 (patch)
tree629b72f3d95ac7b7806fb83096a3b89e14f745ef /graphql/models/gen_models.go
parent6949d6c543e9397578c7c840812df9bbf8531528 (diff)
downloadgit-bug-8bab279114f06f10e22435b0caf9002201831555.tar.gz
Update graphql package to support gqlgen 0.9.0
Diffstat (limited to 'graphql/models/gen_models.go')
-rw-r--r--graphql/models/gen_models.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index 64997104..858abfba 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -19,10 +19,10 @@ type Authored interface {
// The connection type for Bug.
type BugConnection struct {
// A list of edges.
- Edges []BugEdge `json:"edges"`
- Nodes []bug.Snapshot `json:"nodes"`
+ Edges []*BugEdge `json:"edges"`
+ Nodes []*bug.Snapshot `json:"nodes"`
// Information to aid in pagination.
- PageInfo PageInfo `json:"pageInfo"`
+ PageInfo *PageInfo `json:"pageInfo"`
// Identifies the total count of items in the connection.
TotalCount int `json:"totalCount"`
}
@@ -32,25 +32,25 @@ type BugEdge struct {
// A cursor for use in pagination.
Cursor string `json:"cursor"`
// The item at the end of the edge.
- Node bug.Snapshot `json:"node"`
+ 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"`
+ 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"`
+ Cursor string `json:"cursor"`
+ Node *bug.Comment `json:"node"`
}
type IdentityConnection struct {
- Edges []IdentityEdge `json:"edges"`
+ Edges []*IdentityEdge `json:"edges"`
Nodes []identity.Interface `json:"nodes"`
- PageInfo PageInfo `json:"pageInfo"`
+ PageInfo *PageInfo `json:"pageInfo"`
TotalCount int `json:"totalCount"`
}
@@ -61,10 +61,10 @@ type IdentityEdge struct {
// The connection type for an Operation
type OperationConnection struct {
- Edges []OperationEdge `json:"edges"`
- Nodes []bug.Operation `json:"nodes"`
- PageInfo PageInfo `json:"pageInfo"`
- TotalCount int `json:"totalCount"`
+ Edges []*OperationEdge `json:"edges"`
+ Nodes []bug.Operation `json:"nodes"`
+ PageInfo *PageInfo `json:"pageInfo"`
+ TotalCount int `json:"totalCount"`
}
// Represent an Operation
@@ -87,10 +87,10 @@ type PageInfo struct {
// The connection type for TimelineItem
type TimelineItemConnection struct {
- Edges []TimelineItemEdge `json:"edges"`
- Nodes []bug.TimelineItem `json:"nodes"`
- PageInfo PageInfo `json:"pageInfo"`
- TotalCount int `json:"totalCount"`
+ Edges []*TimelineItemEdge `json:"edges"`
+ Nodes []bug.TimelineItem `json:"nodes"`
+ PageInfo *PageInfo `json:"pageInfo"`
+ TotalCount int `json:"totalCount"`
}
// Represent a TimelineItem