Apollo Server (JS Middleware)
Installation
- Install the
inigo.js
packagenpm install inigo.js
- Install your platform specific library:Available libraries:
npm install inigo-linux-amd64
- 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
import { ApolloServer } from "apollo-server";
import { InigoPlugin } from "inigo.js";
// ...
const server = new ApolloServer({
// ...
plugins: [InigoPlugin()],
// ...
});
Execution
INIGO_SERVICE_TOKEN="inigo-service-token" npm 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.