{"size": 601, "ext": "js", "max_stars_repo_path": "api/app/domain/student/schema.js", "max_stars_repo_name": "gabrielclaudino/descomplica-technical-challenge", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/app/domain/student/schema.js", "max_issues_repo_name": "gabrielclaudino/descomplica-technical-challenge", "max_issues_repo_issues_event_min_datetime": "2021-12-09T17:17:56.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-29T01:33:15.000Z", "max_forks_repo_path": "api/app/domain/student/schema.js", "max_forks_repo_name": "gabrielclaudino/descomplica-technical-challenge", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 18.2121212121, "max_line_length": 68, "alphanum_fraction": 0.6455906822}
import { gql } from 'apollo-server-koa';

export const typeDefs = gql`
  type Student {
    id: ID!
    name: String
    cpf: String
    email: String
  }

  type Query {
    allStudents(name: String, cpf: String, email: String): [Student]
  }

  type Mutation {
    createStudent(student: CreateStudentInput): Student!
    updateStudent(id: ID!, student: UpdateStudentInput): Student
    deleteStudent(id: ID!): Student
  }

  input CreateStudentInput {
    name: String!
    cpf: String!
    email: String!
  }

  input UpdateStudentInput {
    name: String
    cpf: String
    email: String
  }
`;
