This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
API docs: use GraphQL types not JSONValue #22574
Open
Description
I understand it is because "GraphQL has terrible support for recursive data structures: graphql/graphql-spec#91". But the API would be much easier to use IMO if it were GraphQL-typed and not just JSONValue. The GraphQL query can just request a capped depth (the UI probably only supports a couple levels of nesting anyway). This is what the comment graphql/graphql-spec#91 (comment) in reply to that issue also suggests.
(Just opening this up for discussion and to give 1 data point, it's obviously your call.)