Tradeoffs when designing GraphQL Mutations to update multiple Properties on one Entity

InstructorNik Graf

Share this video with your friends

Send Tweet

While being specific is great when designing GraphQL Mutations, in some cases this can lead to a large number of Mutations. Especially when the use-case is to update one entity, it raises the question if can or should do just one update mutation.

It's certainly possible, but requires some tradeoffs. Most commonly we have to make non-nullable fields nullable. In this lesson we use an updateProduct example to elaborate why this tradeoff is needed.