From d8446a215912e1d233cb83524cdb703eb4c905ab Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Wed, 21 Jun 2023 11:55:11 -0600 Subject: [PATCH] Fix typo --- gql.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gql.go b/gql.go index 9f44628..902b188 100644 --- a/gql.go +++ b/gql.go @@ -547,8 +547,6 @@ func GQLResourceChildren(p graphql.ResolveParams) (interface{}, error) { }) } - - var gql_type_gql_server *graphql.Object = nil func GQLTypeGQLServer() * graphql.Object { if gql_type_gql_server == nil { @@ -634,7 +632,7 @@ func GQLTypeBaseResource() * graphql.Object { Resolve: GQLResourceParents, }) - gql_type_gql_server.AddFieldConfig("Children", &graphql.Field{ + gql_type_base_resource.AddFieldConfig("Children", &graphql.Field{ Type: GQLListResource(), Resolve: GQLResourceChildren, })