We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a use case where I have to translate the error message, so I have to go over the error structure and map it.
Here is my partial type I'm currently using
type StringConstraint<T extends string, V = string> = { arg: T value: V } type NumberConstraint<T extends string> = { arg: T value: number } type ConstraintDirectiveError = { code: 'ERR_GRAPHQL_CONSTRAINT_VALIDATION' fieldName: string context: ( | StringConstraint<'minLength'> | StringConstraint<'maxLength'> | StringConstraint<'format', 'email'> | NumberConstraint<'min'> | NumberConstraint<'max'> )[] // TODO: rest of constrains }
I would be handy to have it (or something similar) in the library, so I can easily define a translations for the constrains
The text was updated successfully, but these errors were encountered:
Apologies for the delay @MiroslavPetrik. Happy to accept a PR to update the type script definitions
Sorry, something went wrong.
No branches or pull requests
I have a use case where I have to translate the error message, so I have to go over the error structure and map it.
Here is my partial type I'm currently using
I would be handy to have it (or something similar) in the library, so I can easily define a translations for the constrains
The text was updated successfully, but these errors were encountered: