Run npm install graphsync
.
Crate a folder templates
in the same directory with template.yaml
. Add your AppSync schema.graphql
to the templates
folder.
Add following command to your package.json
"scripts": {
"graphsync": "node ./node_modules/.bin/graphsync --region=<AWS-region>"
},
Run npm run graphsync
and your AppSync GraphQL Schema gets automatically updated.