Skip to content

Question Confirmation Playback

Samiwel Thomas edited this page Nov 6, 2018 · 1 revision

Introduction

This document describes the Author team's collective understanding of how the confirmation/playback question pattern will be represented in the GraphQL schema and database. This document is the result of a whiteboard design session held by the team on 05/11/2018.

Query

type QuestionConfirmation {
  id: ID!
  title: String
  questionPage: QuestionPage!
  positive: ConfirmationOption!
  negative: ConfirmationOption!
}

type ConfirmationOption {
  label: String
  description: String
}

Mutations

createQuestionConfirmation(input: CreateQuestionConfirmationInput!): QuestionConfirmation!
updateQuestionConfirmation(input: UpdateQuestionConfirmationInput!): QuestionConfirmation!
deleteQuestionConfirmation(input: DeleteQuestionConfirmationInput!): QuestionConfirmation!
undeleteQuestionConfirmation(input: UndeleteQuestionConfirmationInput!): QuestionConfirmation!

Inputs

Clone this wiki locally