-
-
Notifications
You must be signed in to change notification settings - Fork 51
How to handle enum on directive arguments? #611
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
Comments
@azu Thanks for asking question to me! I apologize for not mentioning this in the documentation. As an implementation, the directive argument currently supports only pure String. I think it is probably better to accept any type that can be converted to a String. I will add this feature. |
In addition, this example (
|
@Code-Hex Thanks! I've confirmed to work Enum. |
I want to handle Enum value on directive arguments.
For example,
@validateString(format: EMAIL)
use enum value on arguemnts.graphql-codegen-typescript-validation-schema always ignore the enum value, I think.
How to handle enum on directive arguments?
Example
I try to write following config, but it is just ignored.
It is ideal to be able to convert to the next by setting something.
→
The text was updated successfully, but these errors were encountered: