Mutation
mutation UpdatePoll($input: UpdatePollInput!) {
updatePoll(input: $input) {
clientMutationId
errors
poll {
answerCount
answerType
answerers {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
answers {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updatePoll": {
"clientMutationId": "string",
"errors": [
"string"
],
"poll": {
"answerCount": 1,
"answerType": "string",
"answerers": [
{
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
],
"answers": {
"edges": [
{
"__typename": "PollAnswerEdge"
}
],
"nodes": [
{
"__typename": "PollAnswer"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string"
}
}
}
}Mutations
updatePoll
Update an existing poll or question
MUTATION
updatePoll(input: UpdatePollInput!): UpdatePollPayloadArguments
input
UpdatePollInput!
required
Parameters for UpdatePoll
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
errors
[String!]!
poll
Mutation
mutation UpdatePoll($input: UpdatePollInput!) {
updatePoll(input: $input) {
clientMutationId
errors
poll {
answerCount
answerType
answerers {
avatarUrl
badges {
__typename
}
conversations {
__typename
}
customFieldResponses {
__typename
}
dailyVisitStreak {
__typename
}
directMessages {
__typename
}
}
answers {
edges {
__typename
}
nodes {
__typename
}
pageInfo {
__typename
}
}
assets {
aspectRatio
assetStyle
contentType
fileSize
id
imageUrl
}
body
}
}
}Variables
{
"input": {
"id": "id"
}
}Response
{
"data": {
"updatePoll": {
"clientMutationId": "string",
"errors": [
"string"
],
"poll": {
"answerCount": 1,
"answerType": "string",
"answerers": [
{
"avatarUrl": "string",
"badges": [
{
"__typename": "Badge"
}
],
"conversations": {
"__typename": "PublicConversationConnection"
},
"customFieldResponses": {
"__typename": "MemberCustomFieldResponseConnection"
},
"dailyVisitStreak": {
"__typename": "DailyVisitStreak"
},
"directMessages": {
"__typename": "PrivateConversationConnection"
}
}
],
"answers": {
"edges": [
{
"__typename": "PollAnswerEdge"
}
],
"nodes": [
{
"__typename": "PollAnswer"
}
],
"pageInfo": {
"__typename": "PageInfo"
}
},
"assets": [
{
"aspectRatio": 1.5,
"assetStyle": "string",
"contentType": "string",
"fileSize": "string",
"id": "id",
"imageUrl": "string"
}
],
"body": "string"
}
}
}
}⌘I