ash_graphql/test/support/static_calculation.ex

9 lines
192 B
Elixir
Raw Normal View History

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