This is sample code from AWS Amplify to learn GraphQL Api.
Use Amplify cli tools to create a new API
command:
amplify init
Once the setup wizard finishes execution.
command:
amplify add api
Select the following options:
- Select GraphQl
- When asked if you have schema, say No
- Select one of the default samples, Can be changed later