mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 13:24:14 +12:00
17 lines
286 B
Elixir
17 lines
286 B
Elixir
|
defmodule AshGraphql.Test.NoGraphql do
|
||
|
@moduledoc false
|
||
|
|
||
|
use Ash.Resource,
|
||
|
data_layer: Ash.DataLayer.Ets
|
||
|
|
||
|
attributes do
|
||
|
uuid_primary_key(:id)
|
||
|
|
||
|
attribute(:name, :string)
|
||
|
end
|
||
|
|
||
|
relationships do
|
||
|
belongs_to(:post, AshGraphql.Test.Post, allow_nil?: false)
|
||
|
end
|
||
|
end
|