how to do ANY

Tthdxr4/14/2023
need to do where 'myvariable' = ANY(mycolumn)
Bbloberenober4/14/2023
.where(sql`'myvariable' = ANY(${mycolumn})`)
ASAndrii Sherman4/14/2023
I guess myvariable also should be in ${}
Bbloberenober4/14/2023
.where(sql`${myvariable} = ANY(${mycolumn})`)
Tthdxr4/14/2023
yeah that's what I did but was wondering if there was a more native way
Tthdxr4/14/2023
got it
Bbloberenober4/14/2023
you can make a helper function
Tthdxr4/14/2023
oh true