Helper to create ANY condition for array queries PostgreSQL: column = ANY(array_column)
// Find users where role matches any value in the roles arrayUser.findAll({ where: { roles: { [Op.any]: ['admin', 'moderator'] } } }) Copy
// Find users where role matches any value in the roles arrayUser.findAll({ where: { roles: { [Op.any]: ['admin', 'moderator'] } } })
Helper to create ANY condition for array queries PostgreSQL: column = ANY(array_column)