Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nareshbhatia/graphql-fragments-example-3
Sample app to demonstrate the use of GraphQL fragments
https://github.com/nareshbhatia/graphql-fragments-example-3
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-3
- Owner: nareshbhatia
- Created: 2024-01-28T06:37:49.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-04T22:40:33.000Z (8 months ago)
- Last Synced: 2024-03-05T04:33:50.395Z (8 months ago)
- Language: TypeScript
- Size: 1.16 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Fragments Example 3
A sample application to demonstrate the use of GraphQL fragments. In this
example, I have included a union in my GraphQL schema to show how unions should
be handled.```graphql
union Event = OrderEvent | StatementEvent
```![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.