-
Security
Lock down my GraphQL API before launch
Disables introspection in production, adds query depth and cost limits, and checks field-level authorization across the schema.
Free Prompt
What This Does / How This Helps
Runs a production-hardening pass over your GraphQL server: introspection off, depth and cost limits on, batching capped, resolvers checking their own authorization. GraphQL's flexibility is the attack surface. Without depth limits, one deeply nested query can pin your database. With introspection on, attackers get a complete map of your schema including fields you never documented. And authorization that only lives at the top-level query falls apart the moment someone reaches a sensitive field through a nested relationship. The prompt measures your real client queries before setting limits, so the legitimate app keeps working while the abusive patterns get rejected.
Want to skip doing this by hand?
Fortivibe audits your app for all of the areas these prompts cover (and more).