action :my_generic_action, MyApi.MyResource do
argument(:arg_1, :string, allow_nil?: false)
argument(:arg_2, :string, allow_nil?: false)
run(fn input, _context ->
# Do some stuff here and return a record of type MyResource
end)
end
action :my_generic_action, MyApi.MyResource do
argument(:arg_1, :string, allow_nil?: false)
argument(:arg_2, :string, allow_nil?: false)
run(fn input, _context ->
# Do some stuff here and return a record of type MyResource
end)
end