diff options
author | Michael Muré <batolettre@gmail.com> | 2019-05-15 18:20:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-15 18:20:54 +0200 |
commit | 22f435bd2a8fc35bde96eafb50b3f78650a5983b (patch) | |
tree | 629b72f3d95ac7b7806fb83096a3b89e14f745ef /graphql/models/gen_models.go | |
parent | 97476ff5fadaf0a457d0f0133db58415b6075940 (diff) | |
parent | 8bab279114f06f10e22435b0caf9002201831555 (diff) | |
download | git-bug-22f435bd2a8fc35bde96eafb50b3f78650a5983b.tar.gz |
Merge pull request #134 from A-Hilaly/gqlgen
Upgrade gqlgen version to v0.9.0
Diffstat (limited to 'graphql/models/gen_models.go')
-rw-r--r-- | graphql/models/gen_models.go | 40 |
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 |