In this video we talk about TypeScript and GraphQL, and how to automatically generate the response and variable types using the Apollo CLI tool.

---------- Course

Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we’ll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. https://courses.leighhalliday.com/next-level-next-js

---------- Links

Apollo CLI - https://www.apollographql.com/docs/devtools/cli/
Starting Code - https://github.com/leighhalliday/apollo-codegen-demo/tree/c58bae82d607afadefb60ab2ad2ba854b4ef9b2f
Source Code - https://github.com/leighhalliday/apollo-codegen-demo

---------- Timeline

  • 00:00 - Introduction
  • 04:30 - Apollo CLI Codegen
  • 09:55 - Apollo CLI Download Schema
  • 11:00 - Apollo CLI Endpoint

#typescript #graphql #apollo #javascript #web-development

Automate Everything! Apollo CLI TypeScript/GraphQL Codegen
2.20 GEEK