6 ms·
Can't you translate GraphQL queries to Joinmonster/Dataloader/Haxl calls? It's up to the implementor of the GraphQL <-> backends layer to build these optimi
by arianvanp 9y ago
Can't you translate GraphQL queries to Joinmonster/Dataloader/Haxl calls? It's up to the implementor of the GraphQL <-> backends layer to build these optimisations, and you could reuse those libraries for that.
Haxl seems particularly suited for this (I think it's the same thing as Dataloader, both from facebook?) as it can efficiently batch and cache queries to multiple sources at the same time. It seems like a good layer between GraphQL and your N data sources.
- elnygren 9y agoIt's certainly doable and has been done. However, it's not as pretty as the rest of GraphQL and there's still a lot of work to be done. And comparing to something like Django/Rails - there's a lot more DIY involved.