Configure AWS console
aws configure sso
# Role: PowerUser
# Profile name: Enter 'default' to make this the default profile used for all AWS commands
Re-authenticate to AWS, if needed:
aws sso login
Download the latest schema and generate api.ts code from schema + queries + mutations:
yarn get-schema
yarn codegen
Write queries/mutations/fragments in separate .graphql files. (Not gql within JS files)
Reference the generated SomeQueryNameDocument objects with useQuery for strong typing.