Multiple field resolver same data loader #768
Unanswered
gilteplitsky
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
If I have a schema like this:
MyObject {
field1
field2
field3
field4
}
(It is actually more complex with bigger hierarchy)
data for field 1 + 2 and 3 + 4 are coming from different sources.
I am trying to create data fetchers for field 3 and field 4.
Is there a way to use the same data loader for both?
the data fetcher should return a specific type but as loading those 2 fields is actually returning an object, I can't return it from the data loader.
Beta Was this translation helpful? Give feedback.
All reactions