You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a custom estimation that depends on which fields are selected under a type.
Here's an example:
query {
a: someType { id } # Only id is selected, so calculation happens one wayb: someType { id, some, fields } # More than id is selected so calculation happens another way
}
I don't believe that the exact behavior I want is achievable with childComplexity unfortunately, I need access to the selectionSet for the given node.
Hopefully that made some sense!
The text was updated successfully, but these errors were encountered:
We could just pass the node as part of the estimator args. This would enable a whole bunch of additional functionality and ways to calculate the complexity of a field. Could potentially also be relevant for #41
Hiya, first off thanks for the amazing library.
I'm trying to implement a custom estimation that depends on which fields are selected under a type.
Here's an example:
I don't believe that the exact behavior I want is achievable with
childComplexity
unfortunately, I need access to the selectionSet for the given node.Hopefully that made some sense!
The text was updated successfully, but these errors were encountered: