diff --git a/gql_types.go b/gql_types.go index 7b3c1b2..d27a9d3 100644 --- a/gql_types.go +++ b/gql_types.go @@ -5,10 +5,8 @@ import ( "reflect" ) -type Field *graphql.Field - -func NewField(init func()*graphql.Field) Field { - return Field(init()) +func NewField(init func()*graphql.Field) *graphql.Field { + return init() } type Singleton[K graphql.Type] struct {