Remove Items from an Array with a GraphQL Mutation

InstructorEve Porcello

Share this video with your friends

Send Tweet

GraphQL mutations are used to change data and can be also used to delete data. In this lesson, we’ll make changes to the removeDay mutation to delete a day from the ski days array by id. Additionally, we’ll return a custom type when we send the mutation.