graphqlapolloapollo-clientreact-apolloapollo-federation

How to set environment variables in PowerShell to fetch a registered schema from Apollo Studio


I'm following Apollo Router Quickstart documentation.

I am stuck on fetching the registered schema from Apollo Studio by setting environment variables. I'm using PowerShell and since this command is for Linux it doesn't work for windows.

$ APOLLO_KEY="..." APOLLO_GRAPH_REF="..." ./router

What command should I use for windows powershell?

Thank you in advance.


Solution

  • You just need to do set it as,

    $Env:APOLLO_KEY = "...."
    $Env: APOLLO_GRAPH_REF = "...."