https://github.com/lewiscowles1986/investigation-aws-appsync
Investigation for work on AWS AppSync
https://github.com/lewiscowles1986/investigation-aws-appsync
Last synced: 2 months ago
JSON representation
Investigation for work on AWS AppSync
- Host: GitHub
- URL: https://github.com/lewiscowles1986/investigation-aws-appsync
- Owner: Lewiscowles1986
- Created: 2024-08-03T12:06:53.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T12:07:27.000Z (10 months ago)
- Last Synced: 2025-03-24T15:50:31.673Z (2 months ago)
- Language: HCL
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AppSync Demo
This repo uses terraform with the [typicode Rest resources](https://jsonplaceholder.typicode.com/guide/)
## Setup
1. `terraform init`
2. `terraform plan`
3. `terraform apply`## query
```graphql
query MyQuery {
posts: getPosts {
id
title
userId
comments {
id
postId
body
}
}
}
```Also users posts comments for 3-level deep (using caching)
```graphql
query MyQuery {
users: getUsers {
id,
email,
posts {
id
title,
comments {
id
body
}
}
}
}
```## Teardown / cleanup
`terraform destroy`