API Monitoring

GraphQL Query
Cost Calculator

Parse any GraphQL query, get an instant complexity score, spot expensive operations, and receive actionable optimization tips — before they hit production.

Get Access — $13/mo
Example output
query GetUserFeed {
  user(id: "1") {          # cost: 1
    posts(first: 100) {    # cost: 100  ⚠ high
      comments {           # cost: 300  ⚠ N+1 risk
        author { name }    # cost: 300
      }
    }
  }
}

✦ Total score: 701  [EXPENSIVE]
⚡ Tip: Add pagination to comments, use DataLoader
Complexity Scoring
Field weights + depth analysis give a single cost number.
🔍
Hot-spot Detection
Highlights the exact fields driving up your query cost.
💡
Optimization Tips
Actionable suggestions: pagination, DataLoader, fragments.
Pro Plan
$13
/month
  • Unlimited query analysis
  • Depth + field weight scoring
  • N+1 & hot-spot detection
  • Optimization recommendations
  • Schema-aware cost rules
  • Export reports as JSON
Start Now

FAQ

How is the complexity score calculated?
Each field carries a base weight (1 for scalars, higher for lists). The score multiplies weights by list sizes and nesting depth, then sums all fields in the query.
Does it need access to my GraphQL server?
No. You paste your query (and optionally your schema) into the tool. All analysis runs client-side — nothing is sent to a server.
What counts as an "expensive" query?
Queries scoring above 500 are flagged as expensive. Common culprits are unbounded list fields, deep nesting, and missing pagination arguments.