2 ms·
Curious, what do you do to maintain types? You can hack together a script or client to pull graphql schema from an endpoint and generate types using Apollos co
by protonimitate 7y ago
Curious, what do you do to maintain types?
You can hack together a script or client to pull graphql schema from an endpoint and generate types using Apollos code gen (similar to [0]).
[0] - https://medium.com/open-graphql/automatically-generate-typescript-definitions-for-graphql-queries-with-apollo-codegen-e73eae72b561 https://medium.com/open-graphql/automatically-generate-types...
- nailer 7y agoPreviously, I made something like TypeORM to re-use TypeScript types on a schema-less database. On my current project I'm using TypeORM itself.