Feature Request: expose the node to estimators
noc7c9 opened this issue · 1 comments
noc7c9 commented
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:
query {
a: someType { id } # Only id is selected, so calculation happens one way
b: 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!