Skip to content

Glossary: GraphQL APIs

Depth limit

Also written: cost limit, depth or cost limit, graphql-armor

A rule that rejects queries nested too deeply (depth limit) or whose fields add up to too much work (cost limit). The `@escape.tech/graphql-armor` package adds both to Yoga, for example to reject queries deeper than a set number of levels.

Where the book teaches it

Related terms

Persisted operationIntrospectionPlugin