Yoga
The Inigo plugin for Yoga provides full observability and controls on all GraphQL traffic. Follow the instructions to get up and running.
Installation
Inigo supports Node v18 and v20 LTS releases.
- Install the
inigo.js
package
npm install inigo.js
- Install your platform specific library:
npm install inigo-linux-amd64
Available libraries:
- inigo-linux-amd64
- inigo-linux-arm64
- inigo-darwin-amd64
- inigo-darwin-arm64
- inigo-windows-amd64
Get token
- Set up a service and a token. If you still need one, follow Getting Started.
Integration
Add the YogaInigoPlugin
to the plugins
for createYoga
, as such:
import { createYoga } from "graphql-yoga";
import { YogaInigoPlugin } from "inigo.js";
// ...
const yoga = createYoga({
schema,
plugins: [YogaInigoPlugin({Schema: typeDefinitions})]
});
Execution
INIGO_SERVICE_TOKEN="inigo-service-token" npm run start
Other optional available environment flags:
INIGO_ENABLE=[true, false] # default is true
LOG_LEVEL=[disabled, debug, info, error, fatal] # default log level is info
Limitations
- Alpine support is currently unavailable.