From a11a5aed60aa3e756970c316c378faa3bba7639b Mon Sep 17 00:00:00 2001 From: Jakub Czajkowski Date: Mon, 5 May 2025 13:54:03 +0200 Subject: [PATCH] feat: extend filter conditions for string, textarea, and richtext types --- src/adapter/resource.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/adapter/resource.ts b/src/adapter/resource.ts index d42028e..5f8c9b9 100644 --- a/src/adapter/resource.ts +++ b/src/adapter/resource.ts @@ -156,7 +156,11 @@ class Resource extends BaseResource { if (property.type() === 'uuid' || property.isId() || property.type() === 'boolean') { query.where(key, filterElement.value as string) - } else if (property.type() === 'string') { + } else if ( + property.type() === 'string' || + property.type() === 'textarea' || + property.type() === 'richtext' + ) { const dialect = this.databaseType() if (dialect === 'postgres') {