Helper to create substring/contains condition Creates a LIKE '%value%' pattern
// Find users whose name contains 'john'User.findAll({ where: substring('name', 'john') })// SQL: WHERE name LIKE '%john%' Copy
// Find users whose name contains 'john'User.findAll({ where: substring('name', 'john') })// SQL: WHERE name LIKE '%john%'
Helper to create substring/contains condition Creates a LIKE '%value%' pattern