ash v0.1.8 Ash.Resource behaviour View Source

A resource is a static definition of an entity in your system.

Resource DSL documentation: Ash.Resource.DSL

  • :name - Required. The name of the resource, e.g posts or authors. This will typically be the pluralized form of the type

  • :type - Required. The type of the resource, e.g post or author. This is used throughout the system.

Note: Do not call the functions on a resource, as in MyResource.type() as this is a private API and can change at any time. Instead, use the Ash module, for example: Ash.type(MyResource)

Link to this section Summary

Link to this section Callbacks

Link to this callback

primary_key()

View Source
primary_key() :: [atom()]