GraphQL: submissionConnection, user node loginId is always null

pmizilin
Community Member

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"
            ]
          },
...

 

 

 

 

 

0 Likes
Users who also had this question