mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
fa5673cd1f
### What This PR fixes a bug with variable nullability coercion. Specifically, providing a non-null variable for a nullable field should work, as all non-nullable variables can be used as nullable variables via "coercion". Related issues: * https://hasurahq.atlassian.net/browse/V3ENGINE-243 * https://github.com/hasura/v3-e2e-testing/pull/224 (the test for this change) ### How I think someone did something clever with macros, so I tried to unpack the macro to make sense of it, and in the process, spotted the bug: it's not that both the location must be nullable AND the variable not, it's that _if_ the variable is nullable, the location must not be nullable. V3_GIT_ORIGIN_REV_ID: 4f4ba3fe6898220bbba9ae2867233cd762bef1cb |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |