# `mix graphql_depth_check`
[🔗](https://github.com/jaizendra-netizen/graphql_depth_check/blob/main/lib/mix/tasks/graphql_depth_check.ex#L1)

Usage: `mix graphql_depth_check queries.csv [--max-depth N] [--max-fields N]`

CSV columns: query_id, query (the GraphQL text, which may span lines inside quotes).
`--max-depth` (whole number of 1 or more, default 6) and `--max-fields` (whole number
of 1 or more, default 50) are limits set by you. This is a text scan, not a GraphQL
parser, and it knows no service's real limits.

Exit code 0 when the report was printed (flagged and invalid queries are reported in it,
not as a failure), 2 when the input cannot be read or the arguments are wrong.
Background: https://www.onegtmlab.dev/tool-directory/sending/quickmail

# `execute`

```elixir
@spec execute([String.t()]) :: {:ok, String.t()} | {:error, String.t()}
```

Run the scan. Returns `{:ok, output}` or `{:error, message}`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
