Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serviejs/apollo-server-servie
Production-ready Node.js GraphQL server for Servie
https://github.com/serviejs/apollo-server-servie
api apollo apollo-server graphql graphql-server graphql-server-servie servie typescript
Last synced: about 1 month ago
JSON representation
Production-ready Node.js GraphQL server for Servie
- Host: GitHub
- URL: https://github.com/serviejs/apollo-server-servie
- Owner: serviejs
- License: other
- Created: 2017-05-12T21:15:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-10T02:58:06.000Z (about 3 years ago)
- Last Synced: 2024-11-15T21:05:25.877Z (about 2 months ago)
- Topics: api, apollo, apollo-server, graphql, graphql-server, graphql-server-servie, servie, typescript
- Language: TypeScript
- Size: 935 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Apollo Server Servie
[![NPM version](https://img.shields.io/npm/v/apollo-server-servie.svg?style=flat)](https://npmjs.org/package/apollo-server-servie)
[![NPM downloads](https://img.shields.io/npm/dm/apollo-server-servie.svg?style=flat)](https://npmjs.org/package/apollo-server-servie)
[![Build status](https://img.shields.io/travis/serviejs/apollo-server-servie.svg?style=flat)](https://travis-ci.org/serviejs/apollo-server-servie)
[![Test coverage](https://img.shields.io/coveralls/serviejs/apollo-server-servie.svg?style=flat)](https://coveralls.io/r/serviejs/apollo-server-servie?branch=master)> Production-ready Node.js GraphQL server for Servie.
## Installation
```
npm install apollo-server-servie --save
```## Usage
Related: https://www.apollographql.com/docs/apollo-server/
```ts
import { compose } from "throwback";
import { get, all } from "servie-route";
import { graphqlServie, graphiqlServie } from "apollo-server-servie";const app = compose([
all("/graphql", graphqlServie({ schema })),
get("/graphiql", graphiqlServie({ endpointURL: `./graphql` }))
]);
```## TypeScript
This project is written using [TypeScript](https://github.com/Microsoft/TypeScript) and publishes the definitions directly to NPM.
## License
Apache 2.0