joinBuilders property

Set<JoinBuilder> joinBuilders
finalinherited

If this column is part of a join, this will hold the join builder that is used to create the join

todos.filter((f) => f.category.name.equals('important'))

In the above example, the FilterComposer returned from f.category will have a join builder on it that is used to create the join between the categories and todos table. This join builder is passed to the f.category.name filter to ensure that the filter is applied to the correct table.

There are instances where the join builder is eventually discarded, such as when the filter is applied to the foreign key column itself (e.g a filter on f.category.id will not use the join, it will apply the filter to f.categoryId instead).

Implementation

final Set<JoinBuilder> joinBuilders;