Module: Router_GraphQL

GraphQL router.


(require("Router_GraphQL"))(app, baseRoute, options)

Create a GraphQL router.

Parameters:
Name Type Description
app *
baseRoute string
options objects
Properties:
Name Type Argument Description
options.schema string
options.middlewares object | array <optional>
options.graphiql boolean <optional>
Source:
routers/graphql.js
Example
'<base path>': {
     graphql: {          
         middlewares: {},
         schema: 'graphql/schema',
         rootValue: '',
         graphiql: true
     }
 }