# apollo-server-restify

> Production-ready Node.js GraphQL server for Restify

Latest version **1.3.6** (published 2018-04-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install apollo-server-restify
pnpm add apollo-server-restify
yarn add apollo-server-restify
bun add apollo-server-restify
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.6 |
| Published | 2018-04-24 |
| First published | 2017-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 13.9 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 13954 |
| Author | Jonas Helfer |
| Maintainers | abernix, freiksenet, jbaxleyiii, martijnwalraven, mdg, sashko |
| Keywords | GraphQL, Apollo, Server, Restify, Javascript |

## Links

- npm: https://www.npmjs.com/package/apollo-server-restify
- Repository: https://github.com/apollographql/apollo-server/tree/master/packages/apollo-server-restify
- Homepage: https://github.com/apollographql/apollo-server#readme
- Issues: https://github.com/apollographql/apollo-server/issues
- npm.io page: https://npm.io/package/apollo-server-restify

## Dependencies (2)

- [apollo-server-core](https://npm.io/package/apollo-server-core.md) ^1.3.6
- [apollo-server-module-graphiql](https://npm.io/package/apollo-server-module-graphiql.md) ^1.3.4

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

- 1.3.6 (latest) — 2018-04-24
- 2.0.0-beta.9 (beta) — 2018-06-13
- 1.3.5 (next) — 2018-04-18
- 1.0.3-tracing.3 (tracing) — 2017-07-21
- 2.0.0-beta.8 — 2018-06-13
- 2.0.0-beta.7 — 2018-06-12
- 2.0.0-beta.6 — 2018-06-11
- 2.0.0-beta.5 — 2018-06-07
- 1.3.4 — 2018-03-28
- 1.3.3 — 2018-03-26
- 1.3.2 — 2017-12-19
- 1.3.1 — 2017-12-18
- 1.3.0 — 2017-12-12
- 1.2.0 — 2017-10-24
- 1.2.0-pre.1 — 2017-10-24
- … 12 more at https://npm.io/package/apollo-server-restify/versions

## README

---
title: Restify
description: Setting up Apollo Server with Restify
---

[![npm version](https://badge.fury.io/js/apollo-server-core.svg)](https://badge.fury.io/js/apollo-server-core) [![Build Status](https://circleci.com/gh/apollographql/apollo-cache-control-js.svg?style=svg)](https://circleci.com/gh/apollographql/apollo-cache-control-js) [![Coverage Status](https://coveralls.io/repos/github/apollographql/apollo-server/badge.svg?branch=master)](https://coveralls.io/github/apollographql/apollo-server?branch=master) [![Get on Slack](https://img.shields.io/badge/slack-join-orange.svg)](https://www.apollographql.com/#slack)

This is the Restify integration of Apollo Server. Apollo Server is a community-maintained open-source Apollo Server that works with all Node.js HTTP server frameworks: Express, Connect, Hapi, Koa and Restify. [Read the docs](https://www.apollographql.com/docs/apollo-server/).

```sh
npm install apollo-server-restify
```

## Usage

```js
import restify from 'restify';
import { graphqlRestify, graphiqlRestify } from 'apollo-server-restify';

const PORT = 3000;

const server = restify.createServer({
  title: 'Apollo Server',
});

const graphQLOptions = { schema: myGraphQLSchema };

server.use(restify.plugins.bodyParser());
server.use(restify.plugins.queryParser());

server.post('/graphql', graphqlRestify(graphQLOptions));
server.get('/graphql', graphqlRestify(graphQLOptions));

server.get('/graphiql', graphiqlRestify({ endpointURL: '/graphql' }));

server.listen(PORT, () => console.log(`Listening on ${PORT}`));
```

## Principles

Apollo Server is built with the following principles in mind:

* **By the community, for the community**: Apollo Server's development is driven by the needs of developers
* **Simplicity**: by keeping things simple, Apollo Server is easier to use, easier to contribute to, and more secure
* **Performance**: Apollo Server is well-tested and production-ready - no modifications needed

Anyone is welcome to contribute to Apollo Server, just read [CONTRIBUTING.md](https://github.com/apollographql/apollo-server/blob/master/CONTRIBUTING.md), take a look at the [roadmap](https://github.com/apollographql/apollo-server/blob/master/ROADMAP.md) and make your first PR!
[Read the CHANGELOG.](https://github.com/apollographql/apollo-server/blob/master/CHANGELOG.md)

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