Welcome to the starter code for Intro to GraphQL with TypeScript. You can find the course lessons and instructions on Odyssey, Apollo's learning platform.
The course will walk you step by step on what to do. This codebase is the starting point of your journey!
Navigate to the root of the project directory, and run the following commands.
npm install && npm run dev
The final
branch of this repo contains the final stage of the course, with all of the steps and code completed! If you get stuck, you can refer to it and compare your code.
This repo is not regularly monitored.
For any issues or problems concerning the course content, please refer to the Odyssey topic in our community forums. You can also join the Apollo Discord.
For further reference, please consider the following sections:
- Official TypeScript documentation
npm install @apollo/server graphql graphql-tag
npm install @apollo/datasource-rest
📂 src ┣ 📂 datasources
┣ 📄 context.ts
┣ 📄 graphql.d.ts
┣ 📄 index.ts
┣ 📄 models.ts
┣ 📄 resolvers.ts
┣ 📄 schema.graphql
┗ 📄 types.ts
npm install -D @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-resolvers
npm run generate