mirror of
https://github.com/directus/directus.git
synced 2026-01-30 10:07:56 -05:00
Merge branch 'main' into aggregation
This commit is contained in:
@@ -361,6 +361,22 @@ export function applyFilter(
|
||||
dbQuery[logical].whereNot(selectionRaw, 'like', `%${compareValue}%`);
|
||||
}
|
||||
|
||||
if (operator === '_starts_with') {
|
||||
dbQuery[logical].where(key, 'like', `${compareValue}%`);
|
||||
}
|
||||
|
||||
if (operator === '_nstarts_with') {
|
||||
dbQuery[logical].whereNot(key, 'like', `${compareValue}%`);
|
||||
}
|
||||
|
||||
if (operator === '_ends_with') {
|
||||
dbQuery[logical].where(key, 'like', `%${compareValue}`);
|
||||
}
|
||||
|
||||
if (operator === '_nends_with') {
|
||||
dbQuery[logical].whereNot(key, 'like', `%${compareValue}`);
|
||||
}
|
||||
|
||||
if (operator === '_gt') {
|
||||
dbQuery[logical].where(selectionRaw, '>', compareValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user