GraphQLの学習用
- The Fullstack Tutorial for GraphQL
- The Schema Definition Language(SDL)
- Build a Fully Type-Safe Application with GraphQL, Prisma & React
- The tutorial above is slightly outdated and recommended to check this one
- Chapter3の注意点
@graphql-yoga/node
はdeprecatedなので、代わりにgraphql-yoga
をインストール
- Chapter4の注意点
main.tsx
のcreateClient
でexchanges
プロパティを設定しないと型エラーになるexchanges
の型はExchange[]
だが、この配列にfetchExchange
を渡さないとデータがfetchされない
Prisma will generate types based off of your database schema. Pothos will use those types to expose GraphQL types via an API. GraphQL Codegen will read your GraphQL schema and generate types for your frontend codebase representing what is available via the API and how to interact with it.