# mini-graphql

> #### using [micro](https://github.com/zeit/micro), [microrouter](https://www.npmjs.com/package/microrouter), and [apollo-server-micro](https://www.npmjs.com/package/apollo-server-micro)

Latest version **1.0.0** (published 2018-03-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-03-28 |
| First published | 2018-03-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 18.3 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | bhboruff |

## Links

- npm: https://www.npmjs.com/package/mini-graphql
- npm.io page: https://npm.io/package/mini-graphql

## Dependencies (5)

- [micro](https://npm.io/package/micro.md) ^9.1.4
- [graphql](https://npm.io/package/graphql.md) ^0.13.2
- [microrouter](https://npm.io/package/microrouter.md) ^3.1.1
- [graphql-tools](https://npm.io/package/graphql-tools.md) ^2.23.1
- [apollo-server-micro](https://npm.io/package/apollo-server-micro.md) ^1.3.2

## Recent versions

- 1.0.0 (latest) — 2018-03-28

## README

# A small GraphQL server
#### using [micro](https://github.com/zeit/micro), [microrouter](https://www.npmjs.com/package/microrouter), and [apollo-server-micro](https://www.npmjs.com/package/apollo-server-micro)

##### Install

> git clone https://github.com/benjaminboruff/mini-graphql.git

> cd mini-graphql && yarn

##### Usage

* Development - watches and builds ES* in one terminal, and runs `micro-dev` in another.

    In one terminal:
    >yarn dev:babel

    In another terminal:
    >yarn dev:micro

* Build and start server - compiles using babel, and starts the *production* `micro` server.
    >yarn start

* Make a production build in `dist/`
    >yarn build

* A simple client data request using `curl`
    > curl -XPOST -H "Content-Type:application/json"  -d '{"query": "{books { title author}}"}'  http://localhost:3000/graphql

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