AshTypst.Resource.Render.Read (ash_typst v0.2.0)

Copy Markdown View Source

Struct and schema for the read sub-entity of a render action.

The read entity controls how resource data is fetched and passed to the template. Use :one cardinality to fetch a single record (available as record in the template's data file) or :many to fetch a list (available as records, streamed in batches for memory efficiency).

For the full DSL reference, see AshTypst.Resource.typst.render.read.

Summary

Types

t()

@type t() :: %AshTypst.Resource.Render.Read{
  __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
  batch_size: pos_integer(),
  cardinality: :one | :many,
  filter: term(),
  limit: non_neg_integer() | nil,
  load: [atom() | keyword()],
  not_found: :error | nil | nil,
  select: [atom()] | nil,
  sort: term()
}