Helper to create endsWith condition Creates a LIKE '%value' pattern
// Find users whose email ends with '@gmail.com'User.findAll({ where: endsWith('email', '@gmail.com') })// SQL: WHERE email LIKE '%@gmail.com' Copy
// Find users whose email ends with '@gmail.com'User.findAll({ where: endsWith('email', '@gmail.com') })// SQL: WHERE email LIKE '%@gmail.com'
Helper to create endsWith condition Creates a LIKE '%value' pattern