Basic limiting complexity of GraphQL queries
We should limit complexity for GraphQL queries.
We could start by giving our Types::BaseField
a default complexity of 1.
Then we could limit the complexity of all queries to a reasonable value. Optionally, authenticated users could get a higher limit
More info in the graphql-ruby
docs