Hi all, I'm trying to create a paginated GraphQL query so I can step through each record set to help QA/Proof read some data we are storing in a GraphQL CMS (GraphCMS.com).
When I add the variable to the GraphQL query I am getting an error. I have tried several ways to do this.
{
questions(first: 1, skip: $recordNumber) {
questionId
termAndTopic {
term
}
answers {
answerText
correctAnswer
rejoiner {
markdown
}
}
questionText {
markdown
}
taskListItem {
itemNumber
}
questionDifficulty
}
}
How do you add a variable to a GraphQL query?