© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Drizzle TeamDT
Drizzle Team•3y ago•
4 replies
splashray

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
Drizzle TeamJoin
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
11,879Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Invalid Input Value for Enum
Drizzle TeamDTDrizzle Team / help
3y ago
Invalid default value for 'updatedAt'
Drizzle TeamDTDrizzle Team / help
3y ago
Invalid default value for timestamp
Drizzle TeamDTDrizzle Team / help
3y ago
Trouble assigning enum as input for sqlite database.
Drizzle TeamDTDrizzle Team / help
2y ago