TypeError: Cannot read properties of undefined (reading 'type')
at Object.isParserForType (/node_modules/.pnpm/@adminjs+typeorm@4.0.0/node_modules/@adminjs/typeorm/src/utils/filter/date-filter.parser.ts:5:78)
at /node_modules/.pnpm/@adminjs+typeorm@4.0.0/node_modules/@adminjs/typeorm/src/utils/filter/filter.converter.ts:17:42
However, if I try to filter with the baz property such as:
Hello everyone,
I have an issue with my current adminJS/TypeOrm implementation.
Context
Basically, I have 2 entities
Foo
andBar
which are linked with a Many-To-Many relationshipWhat I'm trying to achieve
I'm trying to filter records based on a given list of
bar
that I have in my context, so I plugged in a functionfilterRecords
in my Foo resource:Here is the implementation of my
filterRecords
function:The problem
This is not working because I'm getting an error:
However, if I try to filter with the
baz
property such as:It works just fine, I believe there is something I'm not doing right with the context filtering with a Many-To-Many relationship.
Anyone faced this issue before?