hapi-plugin-graphql
v1.1.0
Published
Graphql plugin for Hapi
Downloads
2
Readme
hapi-plugin-graphql
Graphql plugin for Hapi
npm i hapi-plugin-graphql
Usage
await server.register({
plugin: require("hapi-plugin-graphql"),
options: {},
});
Option
graphql
Options that pass to graphql
. See graphql.
method
(Optional) Set which request method it should intercept. Default to POST
. It accepts either string or string array.
For example,
{
method: ["GET", "POST", "PUT"];
}
path
(Optional) Set the path of the GraphQL path. Default to /graphql
.
vhost
(Optional) See route.vhost.
route
(Optional) See route.