Skip to content
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

Document whether using computedField on a reference column will join the referenced table or not #3334

Open
AhmedLSayed9 opened this issue Nov 11, 2024 · 1 comment
Labels
docs Related to the documentation (dartdoc or website)

Comments

@AhmedLSayed9
Copy link
Contributor

AhmedLSayed9 commented Nov 11, 2024

At referencing-other-tables section, it has a note for Filter on foreign keys: "when filtering on a reference column, drift will apply the filter to the column itself instead of joining the referenced table."

At computed-fields section, it just mentions "You can write expressions which reference other columns in the same table or even other tables. The joins will be created automatically by the manager." But, it doesn't mention whether the computedField (on a reference column like id) will join the referenced table or not. i.e:

final todoCategoryId = db.managers.todoItems.computedField((o) => o.category.id);
@AhmedLSayed9 AhmedLSayed9 added the docs Related to the documentation (dartdoc or website) label Nov 11, 2024
@simolus3
Copy link
Owner

cc @dickermoshe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Related to the documentation (dartdoc or website)
Projects
None yet
Development

No branches or pull requests

2 participants