View Source Ash.Registry.Dsl (ash v2.9.11)

A small DSL for declaring an Ash.Registry.

Ash.Registry can be used generically, but the main way it is used in Ash is to provide a compile-time registry for an Ash Api.

dsl-documentation

DSL Documentation

index

Index

docs

Docs

entries

entries

List the entries present in this registry

Examples:

entries do
  entry MyApp.User
  entry MyApp.Post
  entry MyApp.Comment
end

  • :warn_on_empty? (boolean/0) - Set to false to ignore warnings about an empty registry The default value is true.

entry

entry

A reference to an ash module (typically a resource)

Examples:

entry MyApp.User
  • :entry (atom/0) - Required. The referenced module