All jobs / Backend developer / API Development

Backend developer interview question · 0–1 years

In a GraphQL API, what is the schema and what is a resolver?

The strongest answer

The schema is the typed contract — the types and fields a client may ask for — and a resolver is the function that produces the value for one of those fields when a query asks for it

Why it works

Right — one contract, one function per field. That per-field model is also why field-level fetching needs care.

What a good answer covers

Answers that fall short

Who gets asked this

More API Development questions