We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphql setup code :
graphConfig := graph.Config{Resolvers: c.resolver} graphConfig.Directives.HasRole = directives.HasRoleProvider(c.resolver) graphConfig.Directives.Validate = directives.ValidateProvider() gqlHandler := handler.New(graph.NewExecutableSchema(graphConfig)) gqlHandler.AddTransport(transport.Websocket{ InitFunc: func(ctx context.Context, initPayload transport.InitPayload) (context.Context, *transport.InitPayload, error) { return ctx, &initPayload, nil }, KeepAlivePingInterval: 10 * time.Second, Upgrader: websocket.Upgrader{ CheckOrigin: func(r *http.Request) bool { return true }, }, }) gqlHandler.AddTransport(transport.SSE{}) gqlHandler.AddTransport(transport.Options{}) gqlHandler.AddTransport(transport.GET{}) gqlHandler.AddTransport(transport.POST{}) gqlHandler.AddTransport(transport.MultipartForm{}) gqlHandler.Use(extension.Introspection{})
query :
Me { ...user @defer } } fragment user on Profile{ ID UserRole Address { ...@defer{ ID } } }
result:
{ "data": { "Me": { "ID": "74cad214-cf15-4bb1-8a8a-b98186dd32cc", "UserRole": "parent", "Address": null } }, "hasNext": true }
continue to load the address
type Profile { ID: ID! UserRole: UserRole Address: Address } type Address{ ID : ID! }
go run github.com/99designs/gqlgen version
go version
The text was updated successfully, but these errors were encountered:
No branches or pull requests
graphql setup code :
What happened?
query :
result:
What did you expect?
continue to load the address
Minimal graphql.schema and models to reproduce
versions
go run github.com/99designs/gqlgen version
0.17.45go version
1.22.0The text was updated successfully, but these errors were encountered: