10 ms·
This solution seems to work like this: - Generate type safe client based on your schema. - Access GraphQL properties as if they were just JS object propert
by atom_arranger 5y ago
This solution seems to work like this:
- Generate type safe client based on your schema.
- Access GraphQL properties as if they were just JS object properties.
So in this solution the codegen step comes before writing a query.
You get the same advantages pretty much, and you have less likelihood of querying for unused data.