Skip to content

Comment in code is misleading or code is wrong for parsing query if its already AST #833

@jardakotesovec

Description

@jardakotesovec

This is probably small catch - but maybe useful. Noticed that in here comment says if query is already an AST, don't parse or validate, but in fact it just skip the parsing step.

In our case it works as we want. Because we just want to do parse step outside of runHttpQuery to be able to read mutation name from it. But wanted to bring it up to make sure if it works as intended and the validation steps always happen there also in future.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions