3 ms·
What's the advantage of using this tool instead of apollo-cli/apollo-codegen? > The main idea is to have only one source of truth by defining the schema using
by arthens 8y ago
What's the advantage of using this tool instead of apollo-cli/apollo-codegen?
> The main idea is to have only one source of truth by defining the schema using GraphQL-like object and a bit of helper class.
The source of truth already exists, and it's the schema.
Why do I need to specify the type in every query? What happens if I make a mistake and write the wrong type? What happens if the schema changes after I write the query? Will it somehow fail and force me to update it?