Skip to main content

Run GraphQL operations

Head over to AWS AppSync using the AWS Management Console, and open the deployed API.

Next, from the sidebar, click on Queries. Let's execute a getDateTime query and a pong mutation.

Execute Query.getDateTime

Operation
# GraphQL operation for the
# Query.getDateTime resolver
query {
getDateTime
}
Result
{
"data": {
"getDateTime": "2021-12-30 08:56:26+0000"
}
}

Execute Mutation.pong

Operation
# GraphQL operation for the
# Mutation.pong resolver
mutation {
pong(word: "I am groot")
}
Result
{
"data": {
"pong": "toorg ma I"
}
}