cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
KestonMurphy
Community Member

GraphiQL CommentsConnection for Assignment submissions of additional attempts

Jump to solution

The assignment submission where more than one attempt was made the comments are not being returned. 

Here is the query being used. 

query MyQuery {
assignment(id: "895") {
htmlUrl
name
pointsPossible
submissionsConnection {
nodes {
user {
email
name
}
originalityData
attempt
grade
score
state
submissionStatus
enteredGrade
enteredScore
rubricAssessmentsConnection {
nodes {
assessmentRatings {
comments
description
points
}
score
}
}
commentsConnection {
nodes {
comment
author {
email
name
}
}
}
}
}
}
}

Labels (1)
0 Kudos
1 Solution
igustafson
Instructure
Instructure

Hello @KestonMurphy 

Glad to help here I would recommend looking over this guide https://canvas.instructure.com/doc/api/file.graphql.html and then going here https://github.com/graphql/graphiql for specific commands in this case under their documentation 

Regards,

Ian

View solution in original post

1 Reply
igustafson
Instructure
Instructure

Hello @KestonMurphy 

Glad to help here I would recommend looking over this guide https://canvas.instructure.com/doc/api/file.graphql.html and then going here https://github.com/graphql/graphiql for specific commands in this case under their documentation 

Regards,

Ian