Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danilowoz/ts-gql-jsx
https://danilowoz.com/blog/generating-typescript-types-and-react-hooks-based-on-graphql-endpoint
https://github.com/danilowoz/ts-gql-jsx
Last synced: 12 days ago
JSON representation
https://danilowoz.com/blog/generating-typescript-types-and-react-hooks-based-on-graphql-endpoint
- Host: GitHub
- URL: https://github.com/danilowoz/ts-gql-jsx
- Owner: danilowoz
- Created: 2020-07-05T09:23:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-27T09:33:02.000Z (almost 2 years ago)
- Last Synced: 2024-08-03T01:30:24.018Z (3 months ago)
- Language: TypeScript
- Homepage: https://ts-gql-jsx.vercel.app
- Size: 1.15 MB
- Stars: 27
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - ts-gql-jsx - typescript-types-and-react-hooks-based-on-graphql-endpoint | danilowoz | 26 | (TypeScript)
README
## Generating TypeScript types and React Hooks based on GraphQl endpoint
Automate the workflow of the generation of the types and custom React hooks, in React-Typescript applications with GraphQL Code Generator.
[Check it out the full article here.](https://danilowoz.com/blog/generating-typescript-types-and-react-hooks-based-on-graphql-endpoint)
```
📦 my-project
┣ 📂 src
┃ ┣ 📂 pages
┃ ┃ ┗ index.tsx
┃ ┣ 📂 queries
┃ ┃ ┣ 📂 autogenerate
┃ ┃ ┗ my-query.gql
┃ ┗ apollo-client.ts
┣ codegen.yml
â”— package.json
```---
[https://ts-gql-jsx.vercel.app/](https://ts-gql-jsx.vercel.app/)