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