OptionGraphQLQueryDepthLimit
Description Permitted maximum depth of a GraphQL query.
Introduced Version1.0.0
Default13 (added in 1.214)
Minimum3
Maximum50

This parameter allows for control of how many levels a GraphQL query can have.

{
  heroes {
    name
    superpowers {
      name
      damage
    }
    birthdate
  }
}

The example query is 3 levels deep: first level is "heros"; second level contains "name", "superpowers", and "birthdate"; and the third level contains "name" and "damage".