mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 21:32:59 +12:00
20 lines
328 B
Elixir
20 lines
328 B
Elixir
|
defmodule AshGraphql.Test.NonIdPrimaryKey do
|
||
|
@moduledoc false
|
||
|
|
||
|
use Ash.Resource,
|
||
|
data_layer: Ash.DataLayer.Ets,
|
||
|
extensions: [AshGraphql.Resource]
|
||
|
|
||
|
graphql do
|
||
|
type :non_id_primary_key
|
||
|
|
||
|
queries do
|
||
|
get :get_non_id_primary_key, :read
|
||
|
end
|
||
|
end
|
||
|
|
||
|
attributes do
|
||
|
uuid_primary_key(:other)
|
||
|
end
|
||
|
end
|