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
interfaceObject is apollo federation directive. But, when I try to use it, it falsly generate directive handler at generated file.
interfaceObject
it generates InterfaceObject at DirectiveRoot on generated exec.go
InterfaceObject
DirectiveRoot
exec.go
type DirectiveRoot struct { ComposeDirective func(ctx context.Context, obj interface{}, next graphql.Resolver, name string) (res interface{}, err error) InterfaceObject func(ctx context.Context, obj interface{}, next graphql.Resolver) (res interface{}, err error) }
Seamlessly handling without adding new directive handler.
I think it's because interfaceObject is missing from
gqlgen/plugin/federation/federation.go
Lines 80 to 88 in 919aded
just adding interfaceObject on existing test data of federation2.
extend schema @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key", "@shareable", "@provides", "@external", "@tag", "@extends", "@override", "@inaccessible", "@interfaceObject"]) schema { query: CustomQuery } type Hello @key(fields:"name", resolvable: false) @interfaceObject { name: String! } type World @key(fields: "foo bar", resolvable: false) { foo: String! bar: Int! } extend type ExternalExtension @key(fields: " upc ") { upc: String! reviews: [Hello] } type CustomQuery { hello: Hello! }
go run github.com/99designs/gqlgen version
go version
The text was updated successfully, but these errors were encountered:
It seems this PR (#2699) is the fix, but it's not getting in. @StevenACoffman can we add this?
Sorry, something went wrong.
The original author hasn't gotten it to pass both tests and linting and resolved the merge conflicts. Would you make a new PR that does?
@StevenACoffman Ok, I'll try then.
Fixed in #2821
No branches or pull requests
What happened?
interfaceObject
is apollo federation directive. But, when I try to use it, it falsly generate directive handler at generated file.it generates
InterfaceObject
atDirectiveRoot
on generatedexec.go
What did you expect?
Seamlessly handling without adding new directive handler.
I think it's because
interfaceObject
is missing fromgqlgen/plugin/federation/federation.go
Lines 80 to 88 in 919aded
Minimal graphql.schema and models to reproduce
just adding
interfaceObject
on existing test data of federation2.versions
go run github.com/99designs/gqlgen version
?0.17.38
go version
?1.20.4
The text was updated successfully, but these errors were encountered: