juancastillo0 / leto

Dart GraphQL server libraries. Utilities, code generator, examples and reference implementation.
https://juancastillo0.github.io/leto/
MIT License
41 stars 6 forks source link

Remove input variable coercion since it is done again later #28

Open warrenisarobot opened 3 months ago

warrenisarobot commented 3 months ago

When an incoming query is processed input coercion and validation is run on all inputs.

Since variables are coerced and validated separately, when the input is processed the types have already been coerced and validation fails if they are object types.

This removes variable coercion and follows the same process for all inputs.

juancastillo0 commented 3 months ago

Hi thanks for your work!

The tests are failing. I also think it would be great if you could implement the example from the issue as a test in package:leto_generator's example which is used as test cases in CI.