defmodule App.Echo do
use Ash.Resource,
extensions: [AshJsonApi.Resource, AshGraphql.Resource]
actions do
raw :echo, fn input ->
{:ok, input}
end
end
graphql do
# ...
mutations do
create :echo, :echo
end
end
json_api do
# ...
post :echo
end
end
defmodule App.Echo do
use Ash.Resource,
extensions: [AshJsonApi.Resource, AshGraphql.Resource]
actions do
raw :echo, fn input ->
{:ok, input}
end
end
graphql do
# ...
mutations do
create :echo, :echo
end
end
json_api do
# ...
post :echo
end
end