You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I solved the problem,this is my code.
TypeResolve: func(p graphql.ResolveTypeParams) *graphql.Object {
switch p.Value.(type) {
case *User:
return userType
case *Widget:
return widgetType
}
return nil
}
Attempted to follow the instructions but I get the following error. I assume something changed in graphql-go?
$ go get -v
github.com/graphql-go/handler (download)
github.com/graphql-go/handler
github.com/sogko/golang-relay-starter-kit/data
github.com/sogko/golang-relay-starter-kit/data
data/schema.go:44: cannot use func literal (type func(interface {}, graphql.ResolveInfo) *graphql.Object) as type graphql.ResolveTypeFn in field value
The text was updated successfully, but these errors were encountered: