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-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

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.