hydraql
π 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 |