This is the companion repo to the blog post about GraphQL with Typescript.
Go to file
dependabot[bot] cfeb05d583
Bump minimist from 1.2.5 to 1.2.8
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 05:32:09 +00:00
src initial push 2021-12-31 09:39:03 +01:00
static initial push 2021-12-31 09:39:03 +01:00
.gitignore vercel 2021-12-31 10:18:12 +01:00
.graphqlrc.yml initial push 2021-12-31 09:39:03 +01:00
.npmrc initial push 2021-12-31 09:39:03 +01:00
codegen.yaml initial push 2021-12-31 09:39:03 +01:00
package.json vercel 2021-12-31 10:18:12 +01:00
pnpm-lock.yaml Bump minimist from 1.2.5 to 1.2.8 2023-08-03 05:32:09 +00:00
README.md vercel 2021-12-31 10:18:12 +01:00
svelte.config.js vercel 2021-12-31 10:18:12 +01:00
tsconfig.json initial push 2021-12-31 09:39:03 +01:00

A sane and efficient guide for consuming GraphQL endpoints in Typescript

This is the companion repo to the blog post about GraphQL with Typescript.

This is skeleton svelte kit app. The relevant files are:

  • .graphqlrc.yml Editor config
  • codegen.yaml Generator config
  • src/lib/gql Folder where I've put the GraphQL stuff
  • src/routes/index.svelte example usage of the generated SDK

Demo

You can check a running demo here: https://blog-typescript-graphql.vercel.app

Running

pnpm i

pnpm run generate # Generate GraphQL stuff
pnpm run dev