AshLua.Resource.Info (ash_lua v0.1.5)

Copy Markdown View Source

Introspection helpers for AshLua.Resource.

Summary

Functions

Lua-facing argument name mappings configured for this resource.

Whether the resource should be exposed to Lua. Defaults to true.

Lua-facing field name mappings configured for this resource.

The Lua key (under the domain table) to expose this resource as.

Functions

argument_names(resource)

@spec argument_names(Ash.Resource.t() | Spark.Dsl.t()) :: keyword(keyword(String.t()))

Lua-facing argument name mappings configured for this resource.

expose?(resource)

@spec expose?(Ash.Resource.t() | Spark.Dsl.t()) :: boolean()

Whether the resource should be exposed to Lua. Defaults to true.

field_names(resource)

@spec field_names(Ash.Resource.t() | Spark.Dsl.t()) :: keyword(String.t())

Lua-facing field name mappings configured for this resource.

name(resource)

@spec name(Ash.Resource.t() | Spark.Dsl.t()) :: String.t()

The Lua key (under the domain table) to expose this resource as.

Falls back to snake_case of the resource module's last segment.