Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hydraql

ntomsic4MIT2.1.0

🐙 Quickly get up and running with this easy to use yet powerful graphql server library.

apollo, apollo-server, express, graphql, graphql-server

readme

hydraql

Greenkeeper badge Build Status

🐙 Quickly get up and running with this easy to use yet powerful graphql server library.

Libraries

Usage

Exports

API

GraphQLServer

constructor(props)

The props argument accepts the following fields:

Key Type Default Note
types String null
typeDefs String null
connectors String null
resolvers Object null
schema Object null
context Object or Function {}

start(options, callback = () => null)

The options object has the following fields:

Key Type Default Note
cors Object null
tracing Boolean or String 'http-header'
endpoint String '/graphql'
subscriptions String or false '/graphql'
playground String or false '/playground'
uploads Object or false null
apollo Object or false null
schema Object or false null
upload Object or false null

Config