Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nareshbhatia/graphql-fragments-example-1
Sample app to demonstrate the use of GraphQL fragments
https://github.com/nareshbhatia/graphql-fragments-example-1
Last synced: 2 days ago
JSON representation
Sample app to demonstrate the use of GraphQL fragments
- Host: GitHub
- URL: https://github.com/nareshbhatia/graphql-fragments-example-1
- Owner: nareshbhatia
- Created: 2024-01-15T21:27:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-29T20:57:30.000Z (about 1 year ago)
- Last Synced: 2024-12-28T11:30:17.518Z (about 2 months ago)
- Language: TypeScript
- Size: 485 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Fragments Example 1
A sample application to demonstrate the use of GraphQL fragments. The example is
based on the article
[Unleash the power of Fragments with GraphQL Codegen](https://the-guild.dev/blog/unleash-the-power-of-fragments-with-graphql-codegen).
I have used the naming conventions suggested in
[graphql-rules](https://github.com/graphql-rules/graphql-rules).
## Getting Started
### Development Build
```shell
npm ci
npm run dev
```Open a browser window at http://localhost:3000/ to see app.
### Production Build
```shell
npm ci
npm run build
npm start
```Open a browser window at http://localhost:3000/ to see app.