mirror of
https://github.com/cupcakearmy/blog-typescript-graphql.git
synced 2024-12-22 08:16:27 +00:00
This is the companion repo to the blog post about GraphQL with Typescript.
c649db8e77
Bumps [postcss](https://github.com/postcss/postcss) from 8.4.5 to 8.4.31. - [Release notes](https://github.com/postcss/postcss/releases) - [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/postcss/compare/8.4.5...8.4.31) --- updated-dependencies: - dependency-name: postcss dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
src | ||
static | ||
.gitignore | ||
.graphqlrc.yml | ||
.npmrc | ||
codegen.yaml | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
svelte.config.js | ||
tsconfig.json |
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 configcodegen.yaml
Generator configsrc/lib/gql
Folder where I've put the GraphQL stuffsrc/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