#
View Source Ash.Registry.Dsl (ash v2.6.31)

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

- entries
  - entry

###

docs

Docs

##

entries

entries

List the entries present in this registry

- entry

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