You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's verbose, but if you also use TypeScript, a decent amount of manual type declarations are needed for type safety and that makes it even more verbose:
I wonder if it's possible/practical to generate a JS/TS/Go SDK with built-in types from a random GraphQL endpoint, given that you are able to access its schema file.
So instead of using DSL, you use an actual language instead:
I like this idea. I’ve made something like that but for REST API. For REST API there’s no way to obtain API scheme so I failed to make it really convenient. https://github.com/uetchy/MuffledAPI
GraphQL would play nice with API client generator.
The problem
When accessing a GraphQL API, you typically do this:
It's verbose, but if you also use TypeScript, a decent amount of manual type declarations are needed for type safety and that makes it even more verbose:
The solution
I wonder if it's possible/practical to generate a JS/TS/Go SDK with built-in types from a random GraphQL endpoint, given that you are able to access its schema file.
So instead of using DSL, you use an actual language instead:
And it's type-safe by default.
The text was updated successfully, but these errors were encountered: