Automatic construction #709
Unanswered
JonathanFraser
asked this question in
Q&A
Replies: 2 comments 5 replies
-
I'm not entirely sure what you're trying to achieve. It comes to my mind that
|
Beta Was this translation helpful? Give feedback.
1 reply
-
To be honest, both of those approaches seem wrong here. Why can't resolver for |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a schema which returns an expanded object, let's say User.
Now the underlying data in the parent is just a user_id but I want to expose queried fields in user.
As near as I can tell I have two options:
the first is to manually attach the fields
the second is to use a class but construct it in the parent
where the user class does the appropriate queries.
But it really begs the question if there is a way to get ariadne to run an object constructor by default when attempting to resolve a given type and then fall back to the default resolvers.
something like
Beta Was this translation helpful? Give feedback.
All reactions