Replies: 1 comment 6 replies
-
Hey! Is there a reason why you are writing I'm using plenty of decorators for resolvers in my projects and case of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to add an extra decorator to my resolver like this:
The problem is that in doing this Ariadne is no longer able to discern the fact that my resolver needs
some_parameter
. What is the best way to achieve this effect. More specifically, my decorator extracts information from theinfo
object and passes that intomy_resolver
instead. Something like:I want this because in every resolver function we write we have to
load_context(info["context"])
which is very tedious.Beta Was this translation helpful? Give feedback.
All reactions