-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fileds filter not seem to be working properly with nested relations #5314
Comments
Please find the updated code. I have added all models |
Anyone please? |
Do you mean that Anyhow this won't work as expected:
If you would like to hind the |
@agnes512 P.S. Is it a best practice then to mark foreign keys as hidden in models? |
@InvictusMB I totally understand. Unfortunately it's the limitations of current design :( The filtered (excludes fk in this case) data is passed to the next query. And the nested relation needs the fk for
I agree that |
@agnes512 I don't see where this limitation comes from. It could enrich the |
I have four models- purchase, purchase products, vendors, and product.
The purchase has many purchase products and vice versa
purchase products belong to product and vice versa
Vendors has many purchase and vice vera
Now with the following code, I am getting all purchases, purchase-products, and vendors(with field filter) but not able to use fields filter with the product model.
Is it a bug or I am doing it wrong way
And for relation vendors fields
name : true
is not working, so I have to fieldsname : false
.Thank you in advance
purchase.model.ts
purchase-products.model.ts
product.model.ts
vendor.model.ts
The text was updated successfully, but these errors were encountered: