Mutation
mutation CreateQuizAnswer($input: CreateQuizAnswerInput!) {
createQuizAnswer(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": {
"choiceId": "id",
"quizQuestionId": "id"
}
}Response
{
"data": {
"createQuizAnswer": {
"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
createQuizAnswer
Answer a quiz question as the viewer
MUTATION
createQuizAnswer(input: CreateQuizAnswerInput!): CreateQuizAnswerPayloadArguments
input
CreateQuizAnswerInput!
required
Parameters for CreateQuizAnswer
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
quizAttempt
The viewer's ongoing attempt, with the recorded answer
Mutation
mutation CreateQuizAnswer($input: CreateQuizAnswerInput!) {
createQuizAnswer(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": {
"choiceId": "id",
"quizQuestionId": "id"
}
}Response
{
"data": {
"createQuizAnswer": {
"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