graph-rework
noah metz 2023-06-19 15:53:32 -06:00
parent dcb3184e4e
commit 2c8f741f9f
1 changed files with 2 additions and 2 deletions

@ -933,8 +933,8 @@ func MakeGQLHandlers(server * GQLServer) (func(http.ResponseWriter, *http.Reques
valid_resources[reflect.TypeOf((*BaseResource)(nil))] = GQLTypeBaseResource() valid_resources[reflect.TypeOf((*BaseResource)(nil))] = GQLTypeBaseResource()
gql_types := []graphql.Type{GQLTypeBaseEvent(), GQLTypeEventQueue(), GQLTypeSignal(), GQLTypeSignalInput(), GQLTypeBaseNode()} gql_types := []graphql.Type{GQLTypeBaseEvent(), GQLTypeEventQueue(), GQLTypeSignal(), GQLTypeSignalInput(), GQLTypeBaseNode()}
event_type := reflect.TypeOf((Event)(nil)) event_type := reflect.TypeOf((*Event)(nil)).Elem()
resource_type := reflect.TypeOf((Resource)(nil)) resource_type := reflect.TypeOf((*Resource)(nil)).Elem()
for go_t, gql_t := range(server.extended_types) { for go_t, gql_t := range(server.extended_types) {
if go_t.Implements(event_type) { if go_t.Implements(event_type) {
valid_events[go_t] = gql_t valid_events[go_t] = gql_t