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.
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.