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
join
Receive joined relational objects in GET result (with all or selected fields)
?join=relation||field1,field2
But when I use field1, field2 in the HTTP query, it doesn't select these fields (I tried with latest v4.6.1). Instead, it select all the allowed fields defined in CrudOptions.
It's seems that it is due to the fact that in:
packages/crud-typeorm/src/typeorm-crud.service.ts
First thank you for this awesome library!
According to documentation:
But when I use field1, field2 in the HTTP query, it doesn't select these fields (I tried with latest v4.6.1). Instead, it select all the allowed fields defined in CrudOptions.
It's seems that it is due to the fact that in:
packages/crud-typeorm/src/typeorm-crud.service.ts
In function setJoin
There is some filter missing somewhere, like this one (Note: I haven't tested yet the modification code below):
Thanks you for your feedback!
The text was updated successfully, but these errors were encountered: