# zuper-graphql

> GraphQL middlewares for Zuper

Latest version **0.3.0** (published 2016-12-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install zuper-graphql
pnpm add zuper-graphql
yarn add zuper-graphql
bun add zuper-graphql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2016-12-03 |
| First published | 2016-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nicolas Parada |
| Maintainers | nicolasparada |
| Keywords | zuper, graphql |

## Links

- npm: https://www.npmjs.com/package/zuper-graphql
- Repository: https://github.com/zuperlabs/graphql
- Homepage: https://github.com/zuperlabs/graphql#readme
- Issues: https://github.com/zuperlabs/graphql/issues
- npm.io page: https://npm.io/package/zuper-graphql

## Dependencies (2)

- [graphql-server-core](https://npm.io/package/graphql-server-core.md) ~0.4.0
- [graphql-server-module-graphiql](https://npm.io/package/graphql-server-module-graphiql.md) ~0.4.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2016-12-03
- 0.2.0 — 2016-12-02
- 0.1.2 — 2016-12-02
- 0.1.1 — 2016-12-02
- 0.1.0 — 2016-12-02

## README

# zuper-graphql
GraphQL middlewares for Zuper

## Usage
```js
import { Server } from 'http'
import { Application, Router } from 'zuper'
import { graphql, graphiql } from 'zuper-graphql'
import json from 'zuper-json-bodyparser'
import schema from './schema.js'

const server = new Server()
const app = new Application()
const router = new Router()

router.post('/graphql', json, graphql({ schema }))
router.get('/graphiql', graphiql({ endpointURL: '/graphql' }))

app.use(router.middleware)

server.on('request', app.handleRequest)
server.listen(80, '127.0.0.1', () => {
  console.log('Server running at http://localhost/')
})
```

---
_Source: https://npm.io/package/zuper-graphql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
