-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
54 lines (45 loc) · 1.2 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
type Query {
doctorByName(name: String): Doctor
appointmentByDoctorName(doctor_name: String): [Appointment]
}
type Mutation {
createDoctor(name: String, clinic_name: String, specialty: String): Doctor
createPatient(name: String, age: Int, email: String): Patient
createTimeslot(start_time: String, end_time: String): Timeslot
createAppointment(doctor_name: String, time: TimeslotInput): Appointment
deleteAppointment(doctor_name: String, time: TimeslotInput): Appointment
createEvent(doctor_name: String, patient_name: String, time: TimeslotInput): Event
deleteEvent(patient_name: String, time: TimeslotInput): Event
updateEvent(doctor_name: String, new_patient_name: String, time: TimeslotInput): Event
}
type Doctor {
id: ID!
name: String!
clinic_name: String
specialty: String
}
type Patient {
id: ID!
name: String!
age: Int
email: String
}
type Appointment {
id: ID!
doctor_name: String
time: Timeslot
}
type Event {
id: ID!
doctor_name: String
patient_name: String
time: Timeslot
}
type Timeslot {
start_time: String!
end_time: String!
}
input TimeslotInput {
start_time: String!
end_time: String!
}