8 ms·
> AFAIK GraphQL is not good at querying recursive datastructure, it's better at "neighborhood" kind of query, so you can traverse Foreign Keys, but not "indefin
by scottmf 9y ago
> AFAIK GraphQL is not good at querying recursive datastructure, it's better at "neighborhood" kind of query, so you can traverse Foreign Keys, but not "indefinitely".
That isn't true. You can request data in any shape you want and could theoretically traverse through child nodes indefinitely.
We have many queries which go 5-6 levels deep.
- lolive 9y agoHow do you deal with IDs misalignment between data sources?
- scottmf 9y agoCould you clarify what you mean? Got an example?
- lolive 9y agoLet's say you want to query Wikipedia for village descriptions, and get a map of matched villages from openstreetmap. Would it be a use case where GraphQL could help? Then it would need a "translation" layer for both systems. And joins between datasets would be based (for example) on the couple "country+postalCode". Is it a possible use case of GraphQL?
- scottmf 9y agoCould you show me a quick example of what a request and response would look like with REST? I'm still not quite sure what you mean.