Skip to content

Takayyz/graphql-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

graphql-training

GraphQLの学習用

What i worked on

  • 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.tsxcreateClientexchangesプロパティを設定しないと型エラーになる
      • 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.