This code is part of a tutorial on how to create an AWS AppSync GraphQL API and use that in an Ionic 4 app.
Read the tutorial here: Ionic 4 + AppSync: Build a mobile app with a GraphQL backend
For more tutorials on Ionic, check out my blog Gone Hybrid.
How to run the app
First, you'll need to follow the tutorial to set up the AppSync backend, see part 2.
npm install followed by the
ionic serve command.
Make sure you have all the tools installed, see installation guide.