Challenge: Pizza Schema

Take the challenge below to test your knowledge of the GraphQL schema.

We'll cover the following

Problem statement

  • Write a GraphQL schema to update a pizza.

  • Go to line 58 on the widget below and write the implementation.

  • The mutation name is updatePizza.

  • The updatePizza must have an id of Int . The toppings field should have a List of object with an id property of Int as an argument. The pizza can be String, but this is optional.

  • The mutation updatePizza will resolve to the Pizza object.

  • Pizza contains an id of Int (non-null), a pizza of String (non-null), and toppings (List) fields. The Toppings fields contain an id of Int (non-null) and a topping of String (non-null).

.

Get hands-on with 1200+ tech skills courses.