Find string item in Postgres array field (a.k.a type text[] )
PostgreSQL
Given table orders has a field coupon_codes that is type text[] (Postgres Arrray)
example:
example:
orders.coupon_codes ["abc", "yyyy"]
you can call
select * from orders where 'abc'=ANY(coupon_codes);