Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.