ash v0.1.3 Ash View Source
The primary interface for interrogating apis and resources.
This is not the code level interface for a resource. Instead, call functions
on an Api
module that contains those resources. This is for retrieving
resource/api configurations.
Link to this section Summary
Link to this section Types
Link to this type
action()
View Sourceaction() :: Ash.Resource.Actions.Create.t() | Ash.Resource.Actions.Read.t() | Ash.Resource.Actions.Update.t() | Ash.Resource.Actions.Destroy.t()
Link to this type
cardinality_many_relationship()
View Sourcecardinality_many_relationship() :: Ash.Resource.Relationships.HasMany.t() | Ash.Resource.Relationships.ManyToMany.t()
Link to this type
cardinality_one_relationship()
View Sourcecardinality_one_relationship() :: Ash.Resource.Relationships.HasOne.t() | Ash.Resource.Relationships.BelongsTo.t()
Link to this type
relationship()
View Sourcerelationship() :: cardinality_one_relationship() | cardinality_many_relationship()
Link to this section Functions
Link to this function
data_layer_can?(resource, feature)
View Sourcedata_layer_can?(resource(), Ash.DataLayer.feature()) :: boolean()
Link to this function
relationship(resource, relationship_name)
View Sourcerelationship(resource(), atom() | String.t()) :: relationship() | nil
Link to this function
relationships(resource)
View Sourcerelationships(resource()) :: [relationship()]