ash v0.1.3 Ash.Resource.DSL View Source
The entrypoint for the Ash DSL documentation and interface.
Available DSL sections:
actions
-Ash.Resource.Actions
attributes
-Ash.Resource.Attributes
relationships
-Ash.Resource.Relationships
See the relevant module documentation. To use sections in your resource:
defmodule MyModule do
use Ash.Resource, name: "foos", type: "foo"
actions do
...
# see actions documentation
end
attributes do
...
# see attributes documentation
end
relationships do
...
# see relationships documentation
end
end