ash_graphql/test/support/static_calculation.ex
2021-03-22 13:03:18 -04:00

8 lines
192 B
Elixir

defmodule AshGraphql.Test.StaticCalculation do
@moduledoc false
use Ash.Calculation, type: :string
def calculate(records, _, _) do
Enum.map(records, fn _ -> "static" end)
end
end