mirror of https://github.com/01-edu/public.git
graphql: adding progress query
This commit is contained in:
parent
3abb6a75a5
commit
204d4506a1
|
@ -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" }
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue