Skip to content

Get the max depth of input query before execution. #453

Description

@hemratna

Hi Team,
Is there any way to get the max depth of input query before execution?

As per the documentation, We can validate the max depth via
$rule = new QueryDepth($maxDepth = 2);
DocumentValidator::addRule($rule);

But can we have the max depth info of input query in the resolver function? This info help us to write efficient resolver.

Thanks a lot for such an amazing library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions