1.1.0 • Published 3 years ago

hapi-plugin-graphql v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

hapi-plugin-graphql

license npm semantic-release GitHub Sponsors

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.