mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 21:32:59 +12:00
23 lines
398 B
Elixir
23 lines
398 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
|
|
|
|
actions do
|
|
defaults([:create, :read, :update, :destroy])
|
|
end
|
|
|
|
attributes do
|
|
uuid_primary_key(:other)
|
|
end
|
|
end
|