Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Rust Apollo Router


Configuration

plugins:
  inigo.middleware:
    token: "YOUR-INIGO-SERVICE-TOKEN"

Plugin Registration

use anyhow::Result;
use apollo_router::register_plugin;
use inigo_rs::Middleware;

register_plugin!("inigo", "middleware", Middleware);

fn main() -> Result<()> {
    apollo_router::main()
}

Pre-Compiled Rust Router with Inigo’s Plugin

Download here