View Source DSL: Ash.Registry.Dsl

A small DSL for declaring an Ash.Registry. Not generally necessary any longer.

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.

entries

List the entries present in this registry

Nested DSLs

Examples

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

Options

NameTypeDefaultDocs
warn_on_empty?booleantrueSet to false to ignore warnings about an empty registry

entries.entry

entry entry

A reference to an ash module (typically a resource)

Examples

entry MyApp.User

Arguments

NameTypeDefaultDocs
entryatomThe referenced module

Introspection

Target: Ash.Registry.Entry