Helper to create array contained by condition PostgreSQL: <@ operator
// Find products where tags is contained by ['electronics', 'sale']Product.findAll({ where: arrayContainedBy('tags', ['electronics', 'sale']) })// SQL: WHERE tags <@ ARRAY['electronics', 'sale'] Copy
// Find products where tags is contained by ['electronics', 'sale']Product.findAll({ where: arrayContainedBy('tags', ['electronics', 'sale']) })// SQL: WHERE tags <@ ARRAY['electronics', 'sale']
Helper to create array contained by condition PostgreSQL: <@ operator