-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtypes.graphql
53 lines (48 loc) · 1019 Bytes
/
types.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
53
enum Medal {
BRONZE,
SILVER,
GOLD,
PLATINUM
}
enum CourseType {
ENGINE,
SKILL
}
type Course implements Node @infer {
type: CourseType!
title: String!
short_title: String!
description: String
name: String
featured: Int
header: Int
chapters: [Chapter] @reference(by: "name")
medal: Medal!
medal_message: String
cover_wide: Image!
cover_tall: Image!
opengraph_image: Image
}
type Chapter implements Node @infer {
title: String!
name: String
description: String
sections: [Section]
course: Course! @reference(by: "name")
video: Section
opengraph_image: Image
}
type Section implements Node @infer {
slug: String
name: String
description: String
chapter: Chapter @reference(by: "name")
next: Section @reference(by: "name")
previous: Section @reference(by: "name")
opengraph_image: Image
}
type Contributor implements Node @infer {
name: String
profile: String
commits: Int
}