AshNeo4j.DataLayer.Info (AshNeo4j v0.1.2)
View SourceIntrospection helpers for AshNeo4j.DataLayer
Summary
Functions
Converts an attribute name to a node property name string, translating if necessary The attribute name can be an Ash.Query.Ref or atom
Returns any matching Ash.Resource.Info relationship given relationship and destination node labels
Returns the source node property name given the source resource and destination attribute name, i.e. post_id returns uuid
Functions
@spec convert_to_property_name( Ash.Resource.t(), struct() ) :: String.t() | nil
@spec convert_to_property_name(Ash.Resource.t(), atom()) :: String.t() | nil
Converts an attribute name to a node property name string, translating if necessary The attribute name can be an Ash.Query.Ref or atom
@spec label(Ash.Resource.t()) :: atom() | nil
@spec node_relationship(Ash.Resource.t(), atom() | String.t()) :: tuple() | nil
@spec relate(Ash.Resource.t()) :: [tuple()] | nil
@spec relationship(Ash.Resource.t(), atom(), atom()) :: struct() | nil
Returns any matching Ash.Resource.Info relationship given relationship and destination node labels
@spec source_node_property_name(Ash.Resource.t(), atom(), atom()) :: atom() | nil
Returns the source node property name given the source resource and destination attribute name, i.e. post_id returns uuid
@spec store(Ash.Resource.t()) :: list() | nil
@spec translate(Ash.Resource.t()) :: keyword() | nil