diff --git a/src/Resource.ts b/src/Resource.ts index f770360..2c8e326 100644 --- a/src/Resource.ts +++ b/src/Resource.ts @@ -168,7 +168,7 @@ export class Resource extends BaseResource { && ['date', 'datetime'].includes(filter.property.type()) ) { q.whereBetween(key, [filter.value.from, filter.value.to]); - } else if (filter.property.type() === 'string') { + } else if (filter.property.type() === 'string' && !filter.property.availableValues) { if (this.dialect === 'postgresql') { q.whereILike(key, `%${filter.value}%`); } else {