Docs / API

Survey responses

A survey response is one submission of a survey by an attendee at an event (gathering in the schema, selected with gatheringId). It groups the answers of the attendee, one answer for each question. The SurveyResponse type holds the data of a response.

The API reads survey responses. It has no mutation that creates, changes, or deletes a response.

Queries

Field Use
surveyResponses Lists the survey responses of an event.
surveyResponse Returns one survey response of an event.

Both queries take gatheringId as an ID!. surveyResponse also takes the id of the response as an ID!.

The fields of a survey response

Field Content
survey The survey that the response belongs to.
agendaSession The agenda session that the response was submitted for, when the survey is tied to a session.
attendee The attendee who submitted the response.
answers The answers of the attendee, one for each question.
createdAt, updatedAt The times when the response was created and last changed.

Each answer is a SurveyAnswer. It has the answer text and the question that it answers. See Types for the survey types.

List the survey responses

query ListSurveyResponses($gatheringId: ID!) {
  surveyResponses(gatheringId: $gatheringId) {
    id
    createdAt
    survey {
      id
      name
    }
    agendaSession {
      id
      name
    }
    attendee {
      id
      firstName
      lastName
    }
    answers {
      answer
      question {
        name
        questionType
      }
    }
  }
}
{
  "data": {
    "surveyResponses": [
      {
        "id": "7001",
        "createdAt": "2026-06-15T15:10:00Z",
        "survey": { "id": "21", "name": "Session feedback" },
        "agendaSession": { "id": "501", "name": "Opening keynote" },
        "attendee": { "id": "101", "firstName": "Morgan", "lastName": "Hayes" },
        "answers": [
          {
            "answer": "Yes",
            "question": { "name": "Would you recommend this session?", "questionType": "yes-no" }
          },
          {
            "answer": "Clear and well paced.",
            "question": { "name": "Any comments?", "questionType": "comment" }
          }
        ]
      }
    ]
  }
}

Read one survey response

query ReadSurveyResponse($gatheringId: ID!, $id: ID!) {
  surveyResponse(gatheringId: $gatheringId, id: $id) {
    id
    survey {
      name
    }
    answers {
      answer
    }
  }
}
{
  "data": {
    "surveyResponse": {
      "id": "7001",
      "survey": { "name": "Session feedback" },
      "answers": [{ "answer": "Yes" }, { "answer": "Clear and well paced." }]
    }
  }
}