Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita5da2d2

Browse files
committed
update queries
1 parentdb1af32 commita5da2d2

File tree

2 files changed

+41
-40
lines changed

2 files changed

+41
-40
lines changed

‎web-app/src/services/apollo/queries/tutorial.ts

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,46 @@ import {gql} from 'apollo-boost'
33
exportdefaultgql`
44
query getTutorial($tutorialId: ID!, $version: String) {
55
tutorial(id: $tutorialId) {
6-
id
7-
title
8-
text
9-
codingLanguage
10-
testRunner
11-
repo {
12-
uri
6+
id
7+
version (version: $version) {
8+
version
9+
summary {
10+
title
11+
description
1312
}
14-
version(version: $version) {
15-
version
16-
coderoadVersion
13+
data {
14+
config {
15+
testRunner
16+
repo {
17+
uri
18+
}
19+
}
20+
init {
21+
setup {
22+
commits
23+
commands
24+
}
25+
}
1726
levels {
18-
id
1927
title
20-
text
28+
description
2129
setup {
22-
id
23-
commands
2430
commits
31+
commands
2532
files
2633
}
27-
stages {
28-
id
34+
steps {
2935
title
30-
text
36+
description
3137
setup {
32-
id
33-
commands
3438
commits
39+
commands
3540
files
3641
}
37-
steps {
38-
id
39-
title
40-
text
41-
setup {
42-
id
43-
commands
44-
commits
45-
files
46-
}
47-
solution {
48-
id
49-
commands
50-
commits
51-
files
52-
}
42+
solution {
43+
commits
44+
commands
45+
files
5346
}
5447
}
5548
}

‎web-app/src/services/apollo/queries/tutorials.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
import{gql}from'apollo-boost'
1+
import{gql}from'apollo-boost'
22

33
exportdefaultgql`
44
query getTutorials {
55
tutorials {
66
id
7-
title
8-
text
9-
codingLanguage
107
version {
118
version
12-
coderoadVersion
9+
createdBy {
10+
id
11+
}
12+
createdAt
13+
updatedBy {
14+
id
15+
}
16+
updatedAt
17+
summary {
18+
title
19+
description
20+
}
1321
}
1422
}
1523
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp