https://zenn.dev/kei178/articles/8c6ad6fd91c9de
こちらを参考しました
npx create-next-app --example with-typescript react-nextjs-grapql-example
cd react-nextjs-grapql-example/
yarn add graphql@^15.5.1 @apollo/client@^3.4.8
yarn dev
https://github.com/negabaro/rails-graphql-example
rails s -p 3005