Is there an existing issue for this?
Is your feature request related to a problem? Please describe
Right now, association is internally implemented as a field, with a magic :assocation option.
Describe the feature you'd like to see implemented
I'd implement association as a proper class internally, similar to Field.
def self.association(method, options = {}, &block)
validate_blueprint!(options[:blueprint], method)
make_association(
method,
options.merge(
extractor: options.fetch(:extractor) { AssociationExtractor.new }
),
&block
)
end
Describe alternatives you've considered
No response
Additional context
No response
Is there an existing issue for this?
Is your feature request related to a problem? Please describe
Right now, association is internally implemented as a field, with a magic
:assocationoption.Describe the feature you'd like to see implemented
I'd implement association as a proper class internally, similar to
Field.Describe alternatives you've considered
No response
Additional context
No response