graphql: adding progress query

This commit is contained in:
lee 2021-07-22 18:55:09 +01:00 committed by Clément
parent 3abb6a75a5
commit 204d4506a1
1 changed files with 29 additions and 0 deletions

View File

@ -226,3 +226,32 @@ Query variables:
```graphql
{"name": "Joao"}
```
---
- The following query returns information about the progress of a given user in a specific path.
```graphql
query getProgress($name: String!, $path: String!) {
progress(where: {user: {login: {_eq: $name}}, _and: {path: {_eq: $path}}}) {
path
grade
isDone
campus
group {
captainLogin
members {
user {
login
}
}
}
}
}
```
query variable:
```graphql
{"name": "Joao", "path": "/madere/piscine-go/exam-01" }
```