GraphQL: submissionConnection, user node loginId is always null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2023
02:44 PM
Hello,
In our instances, the following query, results in any and all `user` nodes having the `loginId` attribute as a null.
query MyQuery {
course(id: "654321") {
sisId
assignmentsConnection {
nodes {
name
pointsPossible
submissionsConnection(first: 10, filter: {userId: "123456"}) {
nodes {
user {
sisId
email
shortName
_id
loginId
}
score
}
}
submissionTypes
}
pageInfo {
endCursor
}
}
}
}
Resulting payload:
...
"assignmentsConnection": {
"nodes": [
{
"name": "Knowledge Check",
"pointsPossible": 3,
"submissionsConnection": {
"nodes": [
{
"user": {
"id": "VXNlci0xMTcyNjA=",
"sisId": "1234567890",
"email": "edited_out@error.com",
"shortName": "Jane Doe",
"_id": "123456",
"loginId": null
},
"score": 3
}
]
},
"submissionTypes": [
"online_quiz"
]
},
...