Skip to content

Limit GraphQL query depth

We should limit query depth for GraphQL queries.

Let's start with a fixed maximum depth by setting max_depth in our schema.

We could also increase the allowed depth for authenticated users.

More info in the graphql-ruby docs