brownbl1 / graphql-profiling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Profiling Example

  1. npm install
  2. click here to get an API key
  3. Update index.js with your API key
  4. npm start
  5. npx apollo service:push --endpoint http://localhost:4000

Visit http://localhost:4000 and run the following query:

{
  hello(name: "Ben") {
    echo
    slowField # optionally exclude this field
  }
}

On https://engine.apollographql.com/ find your service and click on the metrics tab.

You'll see trace information about your request.

image

About


Languages

Language:JavaScript 100.0%