Method: EPlat::Shopify::GraphQL::V202501::Input.mutation_input
- Defined in:
- lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input.rb
.mutation_input(resource, action) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/e_plat/resource/platform_specific/shopify/graph_q_l/v_2025_01/input.rb', line 24 def self.mutation_input(resource, action) raise "mutation_input not implemented for #{self.class.name}" # example: # case action.to_sym # when :delete # new(input: { id: resource.formatted_id }) # else # new(resource.class.mapping.via_native_attributes_where_possible( # resource.class.remove_root_from(resource.as_json) # )) # end.query_input end |