-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
47 lines (40 loc) · 964 Bytes
/
schema.gql
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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Student {
id: ID!
firstName: String!
lastName: String!
}
type Lesson {
id: ID!
name: String!
startDate: String!
endDate: String!
students: [Student!]!
}
type Query {
lesson(id: String!): Lesson!
lessons: [Lesson!]!
getStudent(id: String!): Student!
getStudents: [Student!]!
}
type Mutation {
createLesson(createLessonInput: CreateLessonInput!): Lesson!
assignStudentsToLesson(assignStudentsToLessonInput: AssignStudentsToLesson!): Lesson!
createStudent(createStudentInput: CreateStudentInput!): Student!
}
input CreateLessonInput {
name: String!
startDate: String!
endDate: String!
students: [ID!] = []
}
input AssignStudentsToLesson {
lessonId: ID!
studentIds: [ID!]!
}
input CreateStudentInput {
firstName: String!
lastName: String!
}