How can I register a default resolver for a Type? #1201
Unanswered
steve-marmalade
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Consider the situation where I have a product type:
and let's say I have an API of the form:
along with many different ways to get lists of product ids. My desired outcome is to write my "list" resolvers such they return lists of product ids:
And so here comes the feature request:
Instead of writing something like the following for each product field:
I want to register a custom "special default resolver" (docs below) :
Here are the Ariadne docs for case conversion:
So basically, I need a way to enhance this "special resolver" on a per-type basis. This would save me a lot of boilerplate.
Beta Was this translation helpful? Give feedback.
All reactions