Class: Ecoportal::API::GraphQL::Input::PresetView::Update
- Inherits:
-
Logic::Input
- Object
- Logic::BaseModel
- Logic::Input
- Ecoportal::API::GraphQL::Input::PresetView::Update
- Defined in:
- lib/ecoportal/api/graphql/input/preset_view/update.rb
Class Method Summary collapse
-
.from_model(model, **kargs) ⇒ Object
The read model (Base::PresetView) exposes the collection as the
fieldConfigurationsLIST; this input takes it as thefieldConfigsone-to-many OBJECT.
Class Method Details
.from_model(model, **kargs) ⇒ Object
The read model (Base::PresetView) exposes the collection as the
fieldConfigurations LIST; this input takes it as the fieldConfigs
one-to-many OBJECT. Base::PresetView owns the rename + reshape, so this
explicit-converter seam (as_input(target_class:), or a direct
.from_model) stays in step with the implicit model.as_input one.
The reshape is idempotent, so applying it on both is harmless.
22 23 24 |
# File 'lib/ecoportal/api/graphql/input/preset_view/update.rb', line 22 def from_model(model, **kargs) Base::PresetView.build_update_input(model, super) end |