Method: GraphQL::Analysis::QueryComplexity#final_value
- Defined in:
- lib/graphql/analysis/query_complexity.rb
#final_value(reduced_value) ⇒ Object, GraphQL::AnalysisError
Send the query and complexity to the block
46 47 48 49 |
# File 'lib/graphql/analysis/query_complexity.rb', line 46 def final_value(reduced_value) total_complexity = reduced_value[:complexities_on_type].last.max_possible_complexity @complexity_handler.call(reduced_value[:target], total_complexity) end |