Automatic DataLoader-free resolver mapping via OfX integration #9163
quyvu01
started this conversation in
Show and tell
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Writing DataLoaders manually for every entity in HotChocolate
is repetitive and error-prone. For microservices with 10+ entities,
this becomes a significant maintenance burden.
Proposed approach (solution)
With sample request
{ members { id countryName } }OfX flow
{ "data": { "members": [ { "id": "member-1", "countryName": "Canada" }, { "id": "member-2", "countryName": "United States" } ] } }What OfX brings to HotChocolate
Integration
OfX-HotChocolate package already exists as proof of concept:
https://ofxmapper.net/docs/integrations/hotchocolate/
Beta Was this translation helpful? Give feedback.
All reactions