mix graphql_depth_check (graphql_depth_check v1.0.0)

Copy Markdown View Source

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

Summary

Functions

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

Functions

execute(args)

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

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