helios1138 / graphql-typed-client

A tool that generates a strongly typed client library for any GraphQL endpoint. The client allows writing GraphQL queries as plain JS objects (with type safety, awesome code completion experience, custom scalar type mapping, type guards and more)
MIT License
212 stars 18 forks source link

Question: Is schema.json absolutely necessary? #7

Closed capaj closed 5 years ago

capaj commented 5 years ago

I tried to generate the client for our schema at @LeapLabs and the json is pretty big- around 270 Kb. Is this JSON necessary? I guess the library generates the GQL query based on it, so it most likely is. It just seems like it's not going to work well for large and complex APIs if you have to load up hundred of kilobytes of JSON just to do a small query.

helios1138 commented 5 years ago