Skip to content

Feature Request: expose the node to estimators #45

Closed
@noc7c9

Description

@noc7c9

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions