3 ms·
Really? It’s called GraphQL and its schema can’t describe a simple tree?
by nmadden 8y ago
Really? It’s called GraphQL and its schema can’t describe a simple tree?
- Twisol 8y agoThe schema certainly can, but GraphQL queries have the valuable (in many but not all contexts) property that the response structure mirrors the request structure. If your request is nested no deeper than four scopes, then the response will also be nested no deeper than four scopes.
- napoleond 8y agoA GraphQL schema can easily define a tree but AFAIK the client must specify the desired recursion depth on that tree. This kind-of makes sense for the same reason that paginating list resources makes sense, but I can see how it would be annoying.