splashray
DTDrizzle Team
•Created by splashray on 6/6/2023 in #help
Invalid input value for enum
I have this enum definition as below and whenever I’m to make a request to save a data of the kind of the enum I always get back invalid input value for enum auth_type: “Form”, where as my enum was defined with uppercase. But if I use “form” it will accept it.
Const authTypeEnum = pgEnum(“auth_type”, [“Form”, “Google”]);
What could be the issues of this error?
Because I have another enum and it works perfectly well in the uppercase specified in the definition
Kindly help me
5 replies