Skip to content
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
@sqs

Description

@sqs

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.)

Metadata

Metadata

Assignees

Labels

apidocsAPI docs for your code (feature)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions