graph-rework-2
noah metz 2023-07-21 17:50:43 -06:00
parent d4fcd80ff8
commit 3b35885c90
1 changed files with 2 additions and 4 deletions

@ -5,10 +5,8 @@ import (
"reflect" "reflect"
) )
type Field *graphql.Field func NewField(init func()*graphql.Field) *graphql.Field {
return init()
func NewField(init func()*graphql.Field) Field {
return Field(init())
} }
type Singleton[K graphql.Type] struct { type Singleton[K graphql.Type] struct {