Skip to content

Commit

Permalink
do not generate directive methods for entityResolver, interfaceObject…
Browse files Browse the repository at this point in the history
…, composeDirective
  • Loading branch information
cpalsulich committed Jul 31, 2023
1 parent 790d7a7 commit ea4a695
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 146 deletions.
3 changes: 3 additions & 0 deletions plugin/federation/federation.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (f *federation) MutateConfig(cfg *config.Config) error {
cfg.Directives["provides"] = config.DirectiveConfig{SkipRuntime: true}
cfg.Directives["key"] = config.DirectiveConfig{SkipRuntime: true}
cfg.Directives["extends"] = config.DirectiveConfig{SkipRuntime: true}
cfg.Directives["entityResolver"] = config.DirectiveConfig{SkipRuntime: true}
cfg.Directives["interfaceObject"] = config.DirectiveConfig{SkipRuntime: true}
cfg.Directives["composeDirective"] = config.DirectiveConfig{SkipRuntime: true}

// Federation 2 specific directives
if f.Version == 2 {
Expand Down
156 changes: 10 additions & 146 deletions plugin/federation/testdata/entityresolver/generated/exec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ea4a695

Please sign in to comment.