I have just recently started with Apollo and would like to expose some existing REST APIs through a new GraphQL layer.
These REST services are already fully (Request and Response data structures) covered by an extensive set of custom Typescript type definitions.
I was hoping to find a way to re-use these existing types, and, maybe with a few additional Query types on top, be able to generate a GraphQL schema instead of duplicating the code.
Surprisingly this appears to be a rather rare use case? I found many tools to generate Typescript definitions from GraphQL, but the reverse direction seems to be difficult.
type-graphql only works if all custom types are classes. That doesn't work for me; I don't have a single class but a myriad of simple types here.
ts2graphql hasn't been updated in a year and I can't even get the example code to work.
What else could I try?