AshDyan.Domain (AshDyan v0.1.0)

Copy Markdown View Source

The AshDyan Spark DSL extension for domains.

Adds a dyan do ... end section to a domain declaring a registry of analyzable resources for discovery. Cross-resource joins are explicitly out of scope for v1.

Use it in a domain:

use Ash.Domain, extensions: [AshDyan.Domain]

Example

defmodule MyApp.Shop do
  use Ash.Domain, extensions: [AshDyan.Domain]

  dyan do
    analyzable_resource MyApp.Order
    analyzable_resource MyApp.Invoice
  end
end

Summary

Functions

dyan(body)

(macro)