You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can't search by full-text columns in nested entities.
Stack trace
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
DriverException: Cannot read properties of undefined (reading 'columnTypes')
at PostgreSqlExceptionConverter.convertException (D:\mikroorm-bug\node_modules\@mikro-orm\core\platforms\ExceptionConverter.js:8:16)
at PostgreSqlExceptionConverter.convertException (D:\mikroorm-bug\node_modules\@mikro-orm\postgresql\PostgreSqlExceptionConverter.js:42:22)
at PostgreSqlDriver.convertException (D:\mikroorm-bug\node_modules\@mikro-orm\core\drivers\DatabaseDriver.js:192:54)
at D:\mikroorm-bug\node_modules\@mikro-orm\core\drivers\DatabaseDriver.js:196:24
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async PostgreSqlDriver.find (D:\mikroorm-bug\node_modules\@mikro-orm\knex\AbstractSqlDriver.js:49:24)
at async SqlEntityManager.find (D:\mikroorm-bug\node_modules\@mikro-orm\core\EntityManager.js:106:25)
at async main (D:\mikroorm-bug\build\index.js:88:21)
previous TypeError: Cannot read properties of undefined (reading 'columnTypes')
at PostgreSqlPlatform.getFullTextWhereClause (D:\mikroorm-bug\node_modules\@mikro-orm\postgresql\PostgreSqlPlatform.js:65:18)
at QueryBuilderHelper.processObjectSubCondition (D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:384:47)
at QueryBuilderHelper.appendQuerySubCondition (D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:334:25)
at D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:325:18
at Array.forEach (<anonymous>)
at QueryBuilderHelper.appendQueryCondition (D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:314:27)
at D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:526:29
at Array.forEach (<anonymous>)
at QueryBuilder_PostgreSQL.<anonymous> (D:\mikroorm-bug\node_modules\@mikro-orm\knex\query\QueryBuilderHelper.js:520:42)
at compileCallback (D:\mikroorm-bug\node_modules\knex\lib\formatter\formatterUtils.js:7:12)
Describe the bug
You can't search by full-text columns in nested entities.
Stack trace
To Reproduce
Expected behavior
You should be able to search by proprieties of nested entities.
Additional context
Searching by non-nested properties seems to be fine.
Versions
The text was updated successfully, but these errors were encountered: