OBJECT

Query

The query root of Footr's GraphQL interface.

link GraphQL Schema definition

  • type Query {
  • # Look up a record by its ID or day.
  • #
  • # Arguments
  • # id: The ID of the record.
  • # day: What day this record is for.
  • record(id: ID, day: Date): Record!
  • # Return a list of records.
  • #
  • # Arguments
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • records(first: Int, last: Int, before: String, after: String): RecordConnection!
  • # Look up a dish by its ID or name.
  • #
  • # Arguments
  • # id: The ID of the dish.
  • # name: The name of the dish.
  • dish(id: ID, name: String): Dish!
  • # Return a list of dishes.
  • #
  • # Arguments
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • dishes(first: Int, last: Int, before: String, after: String): DishConnection!
  • }

link Require by

This element is not required by anyone