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

"""
The javascript `Date` as string. Type represents date and time as the ISO Date string.
"""
scalar DateTime

type Mutation {
  addRecipe(recipe: RecipeInput!): Recipe!
  rate(rate: RateInput!): Recipe!
}

type Query {
  recipe(recipeId: Int!): Recipe
  recipes: [Recipe!]!
}

type Rate {
  date: DateTime!
  user: User!
  value: Int!
}

input RateInput {
  recipeId: Int!
  value: Int!
}

type Recipe {
  author: User!
  description: String
  id: ID!
  ratings: [Rate!]!
  title: String!
}

input RecipeInput {
  description: String
  title: String!
}

type User {
  email: String!
  id: ID!
  nickname: String
}
