-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"empty" values in dropdown fields #129
Comments
Unfortunately an enum value's name can not be null… GraphQL, essentially, tracks enums like this, $enum = [
'name' => 'value',
'fall' => 'fall',
'SPRING' => 'spring',
'All Year' => ''
] The {
entry(enumField: name) {
#...
}
} From the GraphQL spec the {
addSport(season: empty) {
#...
}
} In the above think of -- Note: there was actually a bug here with how |
I'm going to leave this open until a stable tag is created. |
Closing this issue. The fix is included in version 1.2.1. |
I think you're "faking" this because enums can't be empty…
craftql/src/Helpers/StringHelper.php
Lines 28 to 37 in 950a641
Can't they be
null
? Seems like that might be a better choice.The text was updated successfully, but these errors were encountered: