Skip to content

Fix/update to api #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Oct 15, 2019
Prev Previous commit
Next Next commit
update queries
  • Loading branch information
ShMcK committed Oct 14, 2019
commit a5da2d210a377d2be0d8fef7119089b748af6499
63 changes: 28 additions & 35 deletions web-app/src/services/apollo/queries/tutorial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,46 @@ import {gql} from 'apollo-boost'
export default gql`
query getTutorial($tutorialId: ID!, $version: String) {
tutorial(id: $tutorialId) {
id
title
text
codingLanguage
testRunner
repo {
uri
id
version (version: $version) {
version
summary {
title
description
}
version(version: $version) {
version
coderoadVersion
data {
config {
testRunner
repo {
uri
}
}
init {
setup {
commits
commands
}
}
levels {
id
title
text
description
setup {
id
commands
commits
commands
files
}
stages {
id
steps {
title
text
description
setup {
id
commands
commits
commands
files
}
steps {
id
title
text
setup {
id
commands
commits
files
}
solution {
id
commands
commits
files
}
solution {
commits
commands
files
}
}
}
Expand Down
18 changes: 13 additions & 5 deletions web-app/src/services/apollo/queries/tutorials.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
import { gql } from 'apollo-boost'
import {gql} from 'apollo-boost'

export default gql`
query getTutorials {
tutorials {
id
title
text
codingLanguage
version {
version
coderoadVersion
createdBy {
id
}
createdAt
updatedBy {
id
}
updatedAt
summary {
title
description
}
}
}
}
Expand Down