2.1.0 ā€¢ Published 6 years ago

hydraql v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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:

KeyTypeDefaultNote
typesStringnull
typeDefsStringnull
connectorsStringnull
resolversObjectnull
schemaObjectnull
contextObject or Function{}

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

The options object has the following fields:

KeyTypeDefaultNote
corsObjectnull
tracingBoolean or String'http-header'
endpointString'/graphql'
subscriptionsString or false'/graphql'
playgroundString or false'/playground'
uploadsObject or falsenull
apolloObject or falsenull
schemaObject or falsenull
uploadObject or falsenull

Config