# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!!   DO NOT MODIFY THIS FILE BY YOURSELF   !!!
# -----------------------------------------------

type Cook {
  name: String!
  yearsOfExperience: Int!
}

"""
All possible preparation difficulty levels
"""
enum Difficulty {
  Beginner
  Easy
  Hard
  MasterChef
  Medium
}

type Query {
  recipes(difficulty: Difficulty): [Recipe!]!
  search(cookName: String!): [SearchResult!]!
}

type Recipe {
  cook: Cook!
  description: String
  ingredients: [String!]!
  preparationDifficulty: Difficulty!
  title: String!
}

union SearchResult = Cook | Recipe
