When given a GraphQL-LD query, it should be possible to auto-generate TypeScript typings.
For example:
query MyQuery @single(scope: all) {
graph
... on Collection {
subset(_:PAGE)
search @plural {
template
variableRepresentation
mapping @plural {
variable
property
}
}
}
}
Example of typings:
interface MyQuery {
graph: string;
search: MyQuery_search[];
}
interface MyQuery_search {
template: string;
variableRepresentation: string;
mapping: MyQuery_search_mapping[];
}
interface MyQuery_search_mapping {
property: string;
variable: string;
}
When given a GraphQL-LD query, it should be possible to auto-generate TypeScript typings.
For example:
Example of typings: