AshNeo4j.DataLayer.Info (AshNeo4j v0.1.0)

View Source

Introspection 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

Functions

convert_to_property_name(resource, ash_query_ref)

@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

label(resource)

@spec label(Ash.Resource.t()) :: atom() | nil
@spec label(Ash.Resource.t()) :: list() | nil
@spec label(Ash.Resource.t()) :: keyword() | nil

resource(label)

store(resource)

translate(resource)