avo
avo copied to clipboard
Implement `association` option for association fields.
Feature
Implement association
option that allow specifying the association target for an association filed.
with_options as: :has_many do
field :users, scope: -> { query.non_admins }
field :admins, association: :users, scope: -> { query.admins }
end
Additional context
https://github.com/avo-hq/avo/issues/2513
We want that feature too =)
This issue has been marked as stale because there was no activity for the past 15 days.
This issue has been marked as stale because there was no activity for the past 15 days.
We decided to implement this option to all fields and rename it to for_attribute