-
Notifications
You must be signed in to change notification settings - Fork 479
/
graphql-types.ts
81 lines (73 loc) · 1.64 KB
/
graphql-types.ts
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
export const typeDefs = `
type Xdm implements Node {
body: String
fileAbsolutePath: String
frontmatter: XdmFrontmatter!
isIncomplete: Boolean
cppOc: Int
javaOc: Int
pyOc: Int
toc: TableOfContents
mdast: String
}
type XdmFrontmatter implements Node {
id: String
title: String!
author: String
contributors: String
description: String
prerequisites: [String]
redirects: [String]
frequency: Int
}
type Heading {
depth: Int
value: String
slug: String
}
type TableOfContents {
cpp: [Heading]
java: [Heading]
py: [Heading]
}
type ModuleProblemLists implements Node {
moduleId: String
problemLists: [ModuleProblemList]
}
type ModuleProblemList {
listId: String!
problems: [ModuleProblemInfo]
}
type ProblemInfo implements Node {
uniqueId: String!
name: String!
url: String!
source: String!
sourceDescription: String
isStarred: Boolean!
difficulty: String
tags: [String!]!
solution: ProblemSolutionInfo
inModule: Boolean!
module: Xdm @link(by: "frontmatter.id")
}
type ModuleProblemInfo {
uniqueId: String!
name: String!
url: String!
source: String!
sourceDescription: String
isStarred: Boolean!
difficulty: String
tags: [String!]!
solution: ProblemSolutionInfo
}
type ProblemSolutionInfo {
kind: String!
label: String
labelTooltip: String
url: String
sketch: String
hasHints:Boolean
}
`;