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

type Mutation {
  promote(personId: Int!): Boolean!
}

type Person {
  age: Int!
  id: Float!
  name: String!
  role: PersonRole!
  uuid: String!
}

enum PersonRole {
  Admin
  Normal
  Pro
}

type Query {
  person(id: Int!): Person!
  persons(skip: Int! = 0, take: Int! = 10): [Person!]!
  recipe(id: Int!): Recipe!
  recipes(skip: Int! = 0, take: Int! = 10): [Recipe!]!
}

type Recipe {
  averageRating: Float!
  id: Float!
  ratings: [Int!]!
  title: String!
  uuid: String!
}
