Compare enums in select
I want to compare enum from my
query used in
error from nestjs server:
How am I supposed to check equality of enum and string in my select query?
offer schema with query parameter (that is basically string).export const offerType = pgEnum('type', ['SEARCH']);query used in
where statement: eq(offers.type, query.type)error from nestjs server:
How am I supposed to check equality of enum and string in my select query?