ash v0.1.1 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.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

action(resource, name, type)

View Source
action(resource(), atom(), atom()) :: action() | nil
Link to this function

actions(resource)

View Source
actions(resource()) :: [action()]
Link to this function

attribute(resource, name)

View Source
attribute(resource(), String.t() | atom()) :: attribute() | nil
Link to this function

attributes(resource)

View Source
attributes(resource()) :: [attribute()]
Link to this function

data_layer(resource)

View Source
data_layer(resource()) :: data_layer()
Link to this function

default_page_size(api, resource)

View Source
default_page_size(api(), resource()) :: non_neg_integer() | nil
Link to this function

max_page_size(api, resource)

View Source
max_page_size(api(), resource()) :: non_neg_integer() | nil
Link to this function

primary_action(resource, type)

View Source
primary_action(resource(), atom()) :: action() | nil
Link to this function

primary_key(resource)

View Source
primary_key(resource()) :: [attribute()]
Link to this function

relationship(resource, relationship_name)

View Source
relationship(resource(), atom() | String.t()) :: relationship() | nil
Link to this function

relationships(resource)

View Source
relationships(resource()) :: [relationship()]
Link to this function

resources(api)

View Source
resources(api()) :: [resource()]
Link to this function

side_load_config(api)

View Source
side_load_config(api()) :: side_load_config()