ExTeal.Fields.ManyToMany (ExTeal v0.21.0) View Source
The ManyToMany
field corresponds to a many_to_many
ecto relationship. For example,
let's assume a User
schema has a many_to_many
relationship with a Role
schema.
We can add the relationship to our User
resource like so:
alias ExTeal.Fields.ManyToMany
ManyToMany.make(:roles)
Link to this section Summary
Functions
Callback implementation for ExTeal.Field.apply_options_for/4
.
Callback implementation for ExTeal.Field.default_sortable/0
.
Callback implementation for ExTeal.Field.filterable_as/0
.
Callback implementation for ExTeal.Field.make/2
.
Callback implementation for ExTeal.Field.sanitize_as/0
.
Callback implementation for ExTeal.Field.value_for/3
.
Link to this section Functions
Callback implementation for ExTeal.Field.apply_options_for/4
.
Callback implementation for ExTeal.Field.default_sortable/0
.
Callback implementation for ExTeal.Field.filterable_as/0
.
Callback implementation for ExTeal.Field.make/2
.
Callback implementation for ExTeal.Field.sanitize_as/0
.
Callback implementation for ExTeal.Field.value_for/3
.