3 ms·
This is a POC in scala I put together rather quickly: https://github.com/AlexGalays/POC-api-aggregation https://github.com/AlexGalays/POC-api-aggregation How
by boubiyeah 9y ago
This is a POC in scala I put together rather quickly:
https://github.com/AlexGalays/POC-api-aggregation https://github.com/AlexGalays/POC-api-aggregation
How you would write a query:
https://github.com/AlexGalays/POC-api-aggregation/blob/master/app/views/index.scala.html#L19 https://github.com/AlexGalays/POC-api-aggregation/blob/maste...
Unfortunately the PokeAPI is not the best at showcasing this with many level of unneeded nesting and resources with nothing but an "url" property but hopefully you get the idea :)
The fact that the query "language" is indendation based rather than GraphQL's a-string-that-looks-a-bit-like-json-but-isnt was just an arbitrary choice, it's easy to change.