-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
omit_resolver_fields also respects gqlgen.yml's config
- Loading branch information
Showing
5 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
plugin/modelgen/out_omit_resolver_fields_with_explicit_resolver/generated.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
plugin/modelgen/testdata/gqlgen_omit_resolver_fields_with_explicit_resolver.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
schema: | ||
- "testdata/schema_omit_resolver_fields_with_explicit_resolver.graphql" | ||
|
||
exec: | ||
filename: out_omit_resolver_fields_with_explict_resolver/ignored.go | ||
model: | ||
filename: out_omit_resolver_fields_with_explicit_resolver/generated.go | ||
|
||
omit_resolver_fields: true | ||
models: | ||
Base: | ||
fields: | ||
ResolverField: | ||
resolver: true |
4 changes: 4 additions & 0 deletions
4
plugin/modelgen/testdata/schema_omit_resolver_fields_with_explicit_resolver.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
type Base { | ||
StandardField: String! | ||
ResolverField: String! | ||
} |