Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 568 Bytes

README.md

File metadata and controls

11 lines (11 loc) · 568 Bytes

sails-hook-easy-graphql

An installable sails hook, meant to offer a graphql route, that manage all queries and mutation based on your model definitions

Installation

Within the root dir of your sails project run

npm install sails-hook-easy-graphql

Configuration

By default, configuration lives in sails.config.graphql. The configuration key (graphql) can be changed by setting sails.config.hooks['sails-hook-graphql'].configKey.

Usage

Run your sails app, and hit the configured graphql route, if not set it will defaults to /graphql.