graphql-kotlin
graphql-kotlin copied to clipboard
[Feature Request] Meta Annotation Support
Is your feature request related to a problem? Please describe. I want to create a meta annotation like this
@GraphQLIgnore
@Autowired
@Target(AnnotationTarget.VALUE_PARAMETER)
@Retention(AnnotationRetention.RUNTIME)
annotation class GraphQLAutowired
because we plan to use autowiring into arguments quite a bit. However, currently meta annotations for @GraphQLIgnore are not supported.
Describe the solution you'd like I'd like to see this library support meta annotations out of the box.
Describe alternatives you've considered
If that is not possible, instead it would also help if there is a hook for getValidArguments
.
Hello, have you just using the combination of
@GraphQLIgnore
@Autowired
in your resolvers ? i guess the goal here is to be less verbose ?
Yes, exactly. Meta annotations are pretty standard in spring for reducing code duplication, so I was a bit surprised to see it not working here.
I understand spring support is just an addon but maybe it's still possible to support it? Or provide the hook so we can do it ourselves?
sounds good, will work on adding the annotation.
Any progress on this?