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: about 6 hours 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 (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-17T06:47:10.000Z (10 months ago)
- Last Synced: 2024-01-17T10:17:28.341Z (10 months ago)
- Language: TypeScript
- Size: 482 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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).![Screenshot](assets/screenshot.png)
## 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.