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

[generator] support directives using input object args #1917

Open
dariuszkuc opened this issue Jan 24, 2024 · 0 comments
Open

[generator] support directives using input object args #1917

dariuszkuc opened this issue Jan 24, 2024 · 0 comments
Labels
type: enhancement New feature or request

Comments

@dariuszkuc
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently we only support primitive scalar/enums directive arguments (or list of those). . Since we are using annotations to apply directives, we are limited by JVM in what types can be used for annotations parameters.

While GraphQL spec allows directives to also use input objects as their args, we currently don't support it as it requires usage of a custom annotation which is an interface (which cannot be used to generate concrete input/output types). While it is possible to do it through the hooks, the process requires manually creating those custom type definitions. Directive generation process should be updated to support generating input objects from referenced annotations.

Describe the solution you'd like
Out-of-box support for generating directives that use input objects as their arguments (i.e. reference another annotation).

Describe alternatives you've considered
Its possible to do it through hooks but it is a manual process.

Additional context
See #1913

@dariuszkuc dariuszkuc added the type: enhancement New feature or request label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Development

No branches or pull requests

1 participant