OBJECT

Mutation

The root query for implementing GraphQL mutations.

link GraphQL Schema definition

  • type Mutation {
  • # Add a new dish.
  • #
  • # Arguments
  • # input:
  • addDish(input: DishInput!): Dish!
  • # Remove a dish by its ID or name along with its records.
  • #
  • # Arguments
  • # id: The ID of the dish.
  • # name: The name of the dish.
  • removeDish(id: ID, name: String): Dish!
  • # Add a record of an eaten dish.
  • #
  • # Arguments
  • # input:
  • addDishRecord(input: RecordInput!): Record!
  • # Remove a record of an eaten dish.
  • #
  • # Arguments
  • # input:
  • removeDishRecord(input: RecordInput!): Record
  • }

link Require by

This element is not required by anyone