graphql-go
graphql-go copied to clipboard
Add complexity analysis plugin
Allow users to add validation plugin(s) in order calculate complexity analysis. The following items need to be implemented:
- Visit all fields from the query and calculate complexity by given estimators and default field complexity
- Allow declaration of a
@complexity
directive (name can be overridden) to allow users to override the complexity value of a field. - Stretch goal allow multipliers of the complexity value based on the value/type of field arguments.
depends on: #570
see #324 and #401