Skip to content

Add custom annotation to all generated resolver methods #783

Answered by kobylynskyi
thisarattr asked this question in Q&A
Discussion options

You must be logged in to vote

@thisarattr the feature was released in 5.3.0.
Now you can supply a regex in customAnnotationsMapping. E.g.:
customAnnotationsMapping = ["Query..*": ["com.your.organization.GqlSecured"], "Mutation..*": ["com.your.organization.GqlSecured"]]
or even:
customAnnotationsMapping = [".*": ["com.your.organization.GqlSecured"]]
Please try it out and let me know how it works.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@s-af
Comment options

Answer selected by kobylynskyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants