From ff68f131e52af70b09a3660757b404acb19a421e Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Tue, 27 Jun 2023 13:00:53 -0600 Subject: [PATCH] Try to get interface type differently --- gql.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gql.go b/gql.go index 9262684..31f87f9 100644 --- a/gql.go +++ b/gql.go @@ -471,9 +471,9 @@ func MakeGQLHandlers(ctx * GraphContext, server * GQLThread) (func(http.Response gql_types = append(gql_types, v) } - node_type := reflect.TypeOf((GraphNode)(nil)) - lockable_type := reflect.TypeOf((Lockable)(nil)) - thread_type := reflect.TypeOf((Thread)(nil)) + node_type := reflect.TypeOf((*GraphNode)(nil)).Elem() + lockable_type := reflect.TypeOf((*Lockable)(nil)).Elem() + thread_type := reflect.TypeOf((*Thread)(nil)).Elem() for go_t, gql_t := range(server.extended_types) { if go_t.Implements(node_type) {