query depth and cost limits

Limits a GraphQL server places on how deeply nested or how expensive a single query may be.

An unlimited query can take the service down.

In more detail

Without them one query can ask for an enormous tree of related data and exhaust the server. Servers usually reject a query whose depth or estimated cost exceeds the limit before running it.

Related terms

Taught in

References