https://github.com/sashee/appsync-none
Sample code for some uses of the AppSync NONE data source
https://github.com/sashee/appsync-none
appsync aws
Last synced: 11 months ago
JSON representation
Sample code for some uses of the AppSync NONE data source
- Host: GitHub
- URL: https://github.com/sashee/appsync-none
- Owner: sashee
- Created: 2022-08-24T08:31:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-24T09:30:22.000Z (over 3 years ago)
- Last Synced: 2025-01-29T14:09:50.493Z (about 1 year ago)
- Topics: appsync, aws
- Language: HCL
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample code for some uses of the AppSync NONE data source
## Deploy
* ```terraform init```
* ```terraform apply```
## Usage
Send queries to the AppSync API:
```graphql
query MyQuery {
user(id: "user1") {
last_login(format: "MM/dd/YYYY HH:mm")
last_modified
name
}
}
```
Response:
```json
{
"data": {
"user": {
"last_login": "08/24/2022 08:23",
"last_modified": "2022-08-24T08:22:43.932Z",
"name": "John Adams"
}
}
}
````
## Cleanup
* ```terraform destroy```