Replies: 4 comments
-
Could you share the model (Database and DTO) |
Beta Was this translation helpful? Give feedback.
-
I checked that when I entered this code, it doesn't have anything related when the field is a relation, it searches for the comparison identifier, which doesn't exist in this case because it is an object:
|
Beta Was this translation helpful? Give feedback.
-
I'm so sorry, i found my error in the name of relation with the property in entity |
Beta Was this translation helpful? Give feedback.
-
Taking advantage, is there anything you can tell me to do in Oracle date type fields, because queries that have any filter or relationship with dates do not return the data, in these DTOS and entities the configurations made do not work, but I have already tried others as well without success, thank you! |
Beta Was this translation helpful? Give feedback.
-
I I would like to know what the problem is with the query with filter by relationship below, the objects are mapped and related but I get the error attached:
Error:
Error: unknown operator "codigoIntEscala"
at SQLComparisonBuilder.build (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\sql-comparison.builder.ts:93:11)
at (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\where.builder.ts:143:37)
at Array.map ()
at Brackets.whereFactory (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\where.builder.ts:142:37)
at SelectQueryBuilder.getWhereCondition (D:\Praxio\GlobusWeb\node_modules\typeorm\query-builder\src\query-builder\QueryBuilder.ts:1626:19)
at SelectQueryBuilder.andWhere (D:\Praxio\GlobusWeb\node_modules\typeorm\query-builder\src\query-builder\SelectQueryBuilder.ts:1183:29)
at WhereBuilder.withFilterComparison (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\where.builder.ts:139:18)
at (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\where.builder.ts:109:21)
at Array.reduce ()
at WhereBuilder.filterFields (D:\Praxio\GlobusWeb\packages\query-typeorm\src\query\where.builder.ts:107:32)
Beta Was this translation helpful? Give feedback.
All reactions