You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When checking for valid input objects, the compiler incorrectly reports that required fields are missing if they come after fields which are of the incorrect type. This makes tracking down incorrect types more difficult, especially in the case of incorrect of modified enum values.
[ERROR] Error in the project `default`: ✖︎ Variable was defined as type'Float!' but used where a variable of type'String!' is expected.
client/src/App.jsx:10:44
9 │ mutation AppMutation($name: String!, $age: Float!) {
10 │ newUser(input: { name: $name, age: $age }) {
│ ^^^^
11 │ id
[ERROR] Compilation failed.
[ERROR] Unable to run relay compiler. Error details:
Failed to build:
- Validation errors:
- Variable was defined as type'Float!' but used where a variable of type'String!' is expected.:client/src/App.jsx:103:107
Description
When checking for valid
input
objects, the compiler incorrectly reports that required fields are missing if they come after fields which are of the incorrect type. This makes tracking down incorrect types more difficult, especially in the case of incorrect of modifiedenum
values.Example
https://codesandbox.io/s/nervous-mendeleev-88r0yi?file=/client/src/App.jsx:297-325
Schema
Current behaviour A (correct ✅)
Query
Compiler output
Current behaviour B (incorrect ❎)
Query
Compiler output
The text was updated successfully, but these errors were encountered: