Back to Free Tools

FREE TOOLS

GraphQL Query Metrics

Measure potential field occurrences and depth in a GraphQL executable document.

GraphQL executable document, Operation name, Directive variable values JSON

graphql-query-metrics.json (complete report)

Browser only

Runs locally in your browser. Your files, pasted content and generated output are not uploaded. Reset clears this tool’s working data.

This tool needs JavaScript. If it does not load, refresh the page and try again.

How to use this tool

  • Enter values using the examples, or choose a local file where requested. Follow the displayed supported input shapes and limits.
  • Choose Calculate result and inspect the complete result.
  • Download result to save the primary file. Where supplied, additional links save source files and the full JSON report. Reset restores examples and clears output.

Examples

GraphQL executable document: query User($id: ID!) { user(id: $id) { id name } }
Operation name: User
Directive variable values JSON: {}

Limitations

  • Official GraphQL17 parser;syntactic potential fields after local fragment expansion and explicit @skip/@include evaluation. Count aliases/duplicate occurrences,not runtime-merged resolver groups. All type-conditional branches remain potential. Reachable directive conditions need declared Boolean variables with supplied Boolean values or literal Boolean defaults,including inside excluded parents. Refuse cycles/unresolved fragments,unsupported/repeated/misplaced directives and ambiguous operations. At most10000 tokens/64 lexical or expanded levels/20000 AST nodes/20000 expanded selections. No server-cost,schema-validity or execution claim.
  • Text fields are limited to100,000 UTF16 units each and400,000 combined UTF8 bytes; file fields have their own displayed limits. Combined output is at most4MiB. Processing stops after30 seconds; tool-specific bounds may be tighter.
  • Generated source is a downloadable result and is not executed here. Inspection does not establish remote behavior, trust or standards certification.

Related tools

No items found.

More tools for your workflow

Explore the related desktop tool