Variables
Learn what are variables in GraphQL and how they can be used
Working with Variables in GraphQL
What are Variables?
How to Use Variables
1. Define Variables in Your Query or Mutation
graphqlCopy codequery GetPost($postId: ID!) {
post(id: $postId) {
title
body
}
}