Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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