mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-21 05:43:28 +12:00
8 lines
192 B
Elixir
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
|