An installable sails hook, meant to offer a graphql route, that manage all queries and mutation based on your model definitions
Within the root dir of your sails project run
npm install sails-hook-easy-graphql
By default, configuration lives in sails.config.graphql
. The configuration key (graphql
) can be changed by setting sails.config.hooks['sails-hook-graphql'].configKey
.
Run your sails app, and hit the configured graphql route
, if not set it will defaults to /graphql
.