🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

apollo-server-servie

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-server-servie

Production-ready Node.js GraphQL server for Servie

2.0.2
latest
Source
npm
Version published
Weekly downloads
18
500%
Maintainers
1
Weekly downloads
 
Created
Source

Apollo Server Servie

NPM version NPM downloads Build status Test coverage

Production-ready Node.js GraphQL server for Servie.

Installation

npm install apollo-server-servie --save

Usage

Related: https://www.apollographql.com/docs/apollo-server/

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 and publishes the definitions directly to NPM.

License

Apache 2.0

Keywords

servie

FAQs

Package last updated on 01 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts