From 40cb53c1ed827c2119a21e2e44c94c6aff4e39ad Mon Sep 17 00:00:00 2001 From: Aizat Faiz Date: Sun, 10 May 2020 08:45:25 +0800 Subject: [PATCH] fix: change ConnectionConfig.NodeType ConnectionDefinitions does not support Interfaces Changing ConnectionConfig.NodeType from graphql.Object to graphql.Output enables this --- connection.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/connection.go b/connection.go index 8044ec0..6cb0d06 100644 --- a/connection.go +++ b/connection.go @@ -29,10 +29,10 @@ func NewConnectionArgs(configMap graphql.FieldConfigArgument) graphql.FieldConfi } type ConnectionConfig struct { - Name string `json:"name"` - NodeType *graphql.Object `json:"nodeType"` - EdgeFields graphql.Fields `json:"edgeFields"` - ConnectionFields graphql.Fields `json:"connectionFields"` + Name string `json:"name"` + NodeType graphql.Output `json:"nodeType"` + EdgeFields graphql.Fields `json:"edgeFields"` + ConnectionFields graphql.Fields `json:"connectionFields"` } type EdgeType struct {