ash v0.2.0 Ash.Resource.DSL View Source

The entrypoint for the Ash DSL documentation and interface.

Available DSL sections:

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