Mutation
mutation CompleteQuizAttempt($input: CompleteQuizAttemptInput!) {
completeQuizAttempt(input: $input) {
clientMutationId
errors
quizAttempt {
answers {
cheerCount
choice {
__typename
}
createdAt
id
member {
__typename
}
poll {
__typename
}
}
completedAt
correctPercentage
createdAt
id
member {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
}
}
}Variables
{
"input": {
"quizAttemptId": "id"
}
}Response
{
"data": {
"completeQuizAttempt": {
"clientMutationId": "string",
"errors": [
"string"
],
"quizAttempt": {
"answers": [
{
"cheerCount": 1,
"choice": {
"__typename": "PollChoice"
},
"createdAt": "value",
"id": "id",
"member": {
"__typename": "User"
},
"poll": {
"__typename": "Poll"
}
}
],
"completedAt": "value",
"correctPercentage": 1.5,
"createdAt": "value",
"id": "id",
"member": {
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
}
}
}
}Mutations
completeQuizAttempt
Submit and score the viewer’s ongoing quiz attempt
MUTATION
completeQuizAttempt(input: CompleteQuizAttemptInput!): CompleteQuizAttemptPayloadArguments
input
CompleteQuizAttemptInput!
required
Parameters for CompleteQuizAttempt
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
quizAttempt
The scored attempt, with its resulting status and percentage
Mutation
mutation CompleteQuizAttempt($input: CompleteQuizAttemptInput!) {
completeQuizAttempt(input: $input) {
clientMutationId
errors
quizAttempt {
answers {
cheerCount
choice {
__typename
}
createdAt
id
member {
__typename
}
poll {
__typename
}
}
completedAt
correctPercentage
createdAt
id
member {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
}
}
}Variables
{
"input": {
"quizAttemptId": "id"
}
}Response
{
"data": {
"completeQuizAttempt": {
"clientMutationId": "string",
"errors": [
"string"
],
"quizAttempt": {
"answers": [
{
"cheerCount": 1,
"choice": {
"__typename": "PollChoice"
},
"createdAt": "value",
"id": "id",
"member": {
"__typename": "User"
},
"poll": {
"__typename": "Poll"
}
}
],
"completedAt": "value",
"correctPercentage": 1.5,
"createdAt": "value",
"id": "id",
"member": {
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
}
}
}
}⌘I