I'm a junior frontend programmer discovering apollo-client, with the apollo-boost bundle, to make a react app.
I'm following the Apollo-Client tutorial and can't understand the use of resolvers.
1) Why are they useful, since you must write a GQL query/mutation both in the resolver and in the component using the resolver? They seem to add a redundant layer of complexity.
2) Is there a way to learn the resolvers syntax without diving deep into the graphQL backend? I'm looking for a kind of graph that shows something like
"the GQL queries ask the apollo-client for a resolver function, then the resolver makes the query to the cache,..."
Because I'm guessing a lot about how things work.
Thanks