Use an Input Type to Create an Account with a GraphQL Mutation

Eve Porcello
InstructorEve Porcello

Share this video with your friends

Send Tweet

Mutations are another type of GraphQL operation that are similar to queries, but they are used when you need to change any data on the backend. In this lesson, we will send mutations to register new users.

To follow along with these queries, go to the Pet Library GraphQL Playground.

Eve Porcello
Eve Porcelloinstructor
~ 2 years ago

Hi Michael - I just played this video, and it looks ok. Give it another shot, and let me know if you have any issues!

Tim Johnson
Tim Johnson
~ a year ago

got this error on the mutation, Variable "$input" of required type "CreateAccountInput!" was not provided.",

Eve Porcello
Eve Porcelloinstructor
~ a year ago

Hey Timothy! Thanks for bringing this to my attention. The embedded Playground here is actually the wrong one -- it's the "Funded Library" that we get to a bit later. Try running the same query with the other version: https://pet-library.moonhighway.com/ and I'll get that updated here. Thanks again!