Reusing input_object in Absinthe

I have an absinthe input_object like this

input_object :product_input do
    field :type, non_null(:product_type)
    field :name, non_null(:string)
    field :description, non_null(:string)
    field :width, :float
    field :height, :float
    field :length, :float
    field :weight, :float

how do I reuse those fields in new input with additional field like below

input_object :product_update_input do
    field :id, non_null(:id)
    all fields from product_input?

Hey! import_fields(:product_input) should work.

1 Like

it works!! thank you…