★ wanayoo — archive 1999 https://github.com/graphql-java-kickstart/graphql-java-tools/issues/431Nouvelle recherche | Portail wanayoo
Skip to content
New issue

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

Not possible to add custom fieldVisibility #431

Open
rrva opened this issue Sep 6, 2020 · 2 comments
Open

Not possible to add custom fieldVisibility #431

rrva opened this issue Sep 6, 2020 · 2 comments

Comments

@rrva
Copy link
Contributor

@rrva rrva commented Sep 6, 2020

Currently it is not possible to add custom field visibility according to https://www.graphql-java.com/documentation/v15/fieldvisibility/

graphql.kickstart.tools.SchemaParserBuilder does not expose a setting for custom field visibility, nor does it
expose the internals (GraphQLCodeRegistry.Builder) allowing you to set this yourself.

@VsevolodGolovanov
Copy link

@VsevolodGolovanov VsevolodGolovanov commented Sep 11, 2020

SchemaParserBuilder schemaParserBuilder = new SchemaParserBuilder();
SchemaParserOptions options = SchemaParserOptions.newOptions().fieldVisibility(...).build();
schemaParserBuilder.options(options);
@rrva
Copy link
Contributor Author

@rrva rrva commented Sep 11, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.