Method: GraphQL::Schema.complexity_cost_calculation_mode_for
- Defined in:
- lib/graphql/schema.rb
.complexity_cost_calculation_mode_for(multiplex_context) ⇒ :future, ...
Implement this method to produce a per-query complexity cost calculation mode. (Technically, it's per-multiplex.)
This is a way to check the compatibility of queries coming to your API without adding overhead of running :compare
for every query. You could sample traffic, turn it off/on with feature flags, or anything else.
1813 1814 1815 |
# File 'lib/graphql/schema.rb', line 1813 def complexity_cost_calculation_mode_for(multiplex_context) complexity_cost_calculation_mode end |