diff options
Diffstat (limited to 'graphql/connections/connection_template.go')
-rw-r--r-- | graphql/connections/connection_template.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/graphql/connections/connection_template.go b/graphql/connections/connection_template.go index 412eb318..4370957c 100644 --- a/graphql/connections/connection_template.go +++ b/graphql/connections/connection_template.go @@ -29,10 +29,10 @@ type NameConMaker func( edges []EdgeType, nodes []NodeType, info models.PageInfo, - totalCount int) (ConnectionType, error) + totalCount int) (*ConnectionType, error) // NameCon will paginate a source according to the input of a relay connection -func NameCon(source []NodeType, edgeMaker NameEdgeMaker, conMaker NameConMaker, input models.ConnectionInput) (ConnectionType, error) { +func NameCon(source []NodeType, edgeMaker NameEdgeMaker, conMaker NameConMaker, input models.ConnectionInput) (*ConnectionType, error) { var nodes []NodeType var edges []EdgeType var cursors []string |