

Lesson 04 · 12 min
Mutations and resolvers
A resolver is a function that knows where to get a field.
12 minLesson 4 of 9Practice includedAsk AI on any point
Every schema field has a resolver (parent, args, context) => value. parent is the object one level up, args the field's arguments, context the request's shared things: the user, the database. Mutations are the same resolvers in the Mutation type; they change data and return the result.
Sign in to continue
The rest of this lesson opens after sign up
The first lesson of every course is open without an account. To read on, solve the practice and use Ask, create a free account or log in.