graphql-go icon indicating copy to clipboard operation
graphql-go copied to clipboard

Add complexity analysis plugin

Open pavelnikolov opened this issue 2 years ago • 1 comments

Allow users to add validation plugin(s) in order calculate complexity analysis. The following items need to be implemented:

  1. Visit all fields from the query and calculate complexity by given estimators and default field complexity
  2. Allow declaration of a @complexity directive (name can be overridden) to allow users to override the complexity value of a field.
  3. Stretch goal allow multipliers of the complexity value based on the value/type of field arguments.

depends on: #570

pavelnikolov avatar Feb 16 '23 22:02 pavelnikolov

see #324 and #401

pavelnikolov avatar Mar 07 '23 14:03 pavelnikolov