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"
}
}
Congratulations!
You have just learned the basics of AppSync Butler 🎉! Using what you have learned, you can now deploy a more complex GraphQL API backing a DynamoDB table.
Can you improve the docs? Please submit a PR!
What's next?
- Read the API documentation
- Define a variable in your AppSync Mapping Template.
- Tweet about your experience with AppSync Butler.
- Looking to contribute? Let's discuss more on Gitter to get started.