-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
type: featureDEPRECATED: replace with the "feature" issue typeDEPRECATED: replace with the "feature" issue type
Description
What are you doing?
I want to be able to perform startsWith, endsWith, and substring queries with operators so that I do not have to manually wrap the where value with the % character as is done with the like operator. This would be something similar to the query operators offered by the Django ORM.
mymodel.findAll({
where: {
myField: {
[Op.startsWith]: 'abc'
}
}
})What do you expect to happen?
Output the equivalent SQL
... WHERE myField LIKE 'abc%' ...
Metadata
Metadata
Assignees
Labels
type: featureDEPRECATED: replace with the "feature" issue typeDEPRECATED: replace with the "feature" issue type