Skip to content

Feature/update server #69

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
Jan 11, 2020
Prev Previous commit
Next Next commit
cleanup queries
  • Loading branch information
ShMcK committed Jan 11, 2020
commit 1fc57b1211481c55646dc89ca9e32d28af9f0c00
8 changes: 5 additions & 3 deletions web-app/src/services/apollo/queries/tutorial.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { gql } from 'apollo-boost'

// TODO: add version to query

export default gql`
query getTutorial($tutorialId: ID!, $version: String) {
query getTutorial($tutorialId: ID!) {
tutorial(id: $tutorialId) {
id
createdBy {
Expand All @@ -13,7 +15,7 @@ export default gql`
title
description
}
latestVersion {
version {
createdAt
createdBy {
id
Expand All @@ -33,7 +35,7 @@ export default gql`
levels {
id
title
description
# summary # TODO: reimplement later
content
setup
steps {
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/services/apollo/queries/tutorials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default gql`
title
description
}
latestVersion {
version {
publishedAt
publishedBy {
id
Expand Down