You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow to exclude fields from generated GraphQL objects #1297
When resolvers are specified for a field via fieldsWithResolver, the field is excluded from the object being generated
When resolvers are not specified, the field is included in the object being generated
The problem
Adding ad-hoc resolvers that are outside the plugin scope is impossible because the field will always be generated.
Use case: if I want to add a custom @BatchMapping resolver it will either conflict with the "singular" one generated by the plugin or, if resolver generation is disabled we will end up with the field in the object that we don't want
Suggested solution
Add extra plugin option to allow excluding specified fields from generation, e.g.
Activity
Allow to exclude fields from generated GraphQL objects #1297 (#1299)
kobylynskyi commentedon Aug 9, 2023
Thanks @sabirove for working on this.