Hi
I'm having a problem get data for a specific user from the graphql API
my graphql query is:
query MyQuery($courseID: ID!) {
course(id: $courseID) {
enrollmentsConnection {
nodes {
type
user(id: $userID) {
_id
name
}
}
}
}
}
variables are:
{"courseID": redacted, "userID": redacted}
and the response is:
{
"errors": [
{
"message": "Field 'user' doesn't accept argument 'id'",
"locations": [
{
"line": 6,
"column": 14
}
],
"path": [
"query MyQuery",
"course",
"enrollmentsConnection",
"nodes",
"user",
"id"
],
"extensions": {
"code": "argumentNotAccepted",
"name": "user",
"typeName": "Field",
"argumentName": "id"
}
}
]
}
Are we waiting for user to be made queriable?
How do you query a user's enrolments?