Run this to generate the files:
npx create-next-app --example https://github.com/rd3m/dato-starter <YOUR_APP_NAME>
Add a .env file with your NEXT_DATOCMS_API_TOKEN and add your token to the graphql.config.yml file.
Queries go in the graphql dir, run the following to generate a queries and types file.
npm run generate-ts-types