{"size": 1098, "ext": "js", "max_stars_repo_path": "schema.js", "max_stars_repo_name": "RaySheikh/RecepieSite", "max_stars_repo_stars_event_min_datetime": "2021-03-08T07:58:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-08T13:24:26.000Z", "max_issues_repo_path": "schema.js", "max_issues_repo_name": "RaySheikh/RecepieSite", "max_issues_repo_issues_event_min_datetime": "2020-09-04T23:51:13.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-08T22:47:57.000Z", "max_forks_repo_path": "schema.js", "max_forks_repo_name": "flo5O/Full-stack_React_GraphQL_Apollo", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 22.875, "max_line_length": 135, "alphanum_fraction": 0.7067395264}
exports.typeDefs = `

type Recipe {
  _id: ID
  name: String!
  imageUrl: String!
  category: String!
  description: String!
  instructions: String!
  createdDate: String
  likes: Int
  username: String
}

type User {
  _id: ID
  username: String! @unique
  password: String!
  email: String!
  joinDate: String
  favorites: [Recipe]
}

type Query {
  getAllRecipes: [Recipe]
  getRecipe(_id: ID!): Recipe
  searchRecipes(searchTerm: String): [Recipe]

  getCurrentUser: User
  getUserRecipes(username: String!): [Recipe]
}

type Token {
  token: String!
}

type Mutation {
  addRecipe(name: String!, imageUrl: String!, description: String!, category: String!, instructions: String!, username: String): Recipe
  deleteUserRecipe(_id: ID): Recipe
  updateUserRecipe(_id: ID!, name: String!, imageUrl: String!, description: String!, category: String!): Recipe
  likeRecipe(_id: ID!, username: String!): Recipe
  unlikeRecipe(_id: ID!, username: String!): Recipe
  signinUser(username: String!, password: String!): Token
  signupUser(username: String!, email: String!, password: String!): Token
}

`;
