ExTeal.Fields.HasMany (ExTeal v0.21.0) View Source
The HasMany
field corresponds to a has_many
ecto relationship. For example,
let's assume a User
schema has many Post
schema. We may add the relationship
to our User
ExTeal resource like so:
alias ExTeal.Fields.HasMany
HasMany.make(:posts)
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
.