https://github.com/jackdbd/graphql-webpack-minimal
A super-simple GraphQL server with a basic configuration for webpack 4
https://github.com/jackdbd/graphql-webpack-minimal
Last synced: about 2 months ago
JSON representation
A super-simple GraphQL server with a basic configuration for webpack 4
- Host: GitHub
- URL: https://github.com/jackdbd/graphql-webpack-minimal
- Owner: jackdbd
- License: mit
- Created: 2018-04-29T16:01:08.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-29T17:07:55.000Z (about 8 years ago)
- Last Synced: 2025-03-11T06:49:20.108Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphQL Webpack Minimal
A super-simple GraphQL server with a basic configuration for webpack 4.
## Usage
```shell
yarn install
yarn run build # or yarn run dev
yarn run serve
```
Go to `http://localhost:3000/graphiql` to run queries like this one:
```shell
{
books {
title
author
}
getFortuneCookie
}
```
The main point of using webpack is to write GraphQL types, queries and mutations in `.graphql` files.
See also:
- [Static GraphQL queries](https://dev-blog.apollodata.com/5-benefits-of-static-graphql-queries-b7fa90b0b69a)
- [Webpack'ing your graphQL Documents](https://dev-blog.apollodata.com/webpacking-your-graphql-documents-bf9697ed259b)