AshTypescript.Rpc.Request (ash_typescript v0.11.0)

View Source

Request data structure for the new RPC pipeline.

Contains all parsed and validated request data needed for Ash execution. Immutable structure that flows through the pipeline stages.

Summary

Functions

Creates a new Request with validated parameters.

Types

t()

@type t() :: %AshTypescript.Rpc.Request{
  action: map(),
  actor: term(),
  context: map(),
  domain: module(),
  extraction_template: map(),
  filter: map() | nil,
  get_by: map() | nil,
  identity: term(),
  input: map(),
  load: list(),
  pagination: map() | nil,
  resource: module(),
  rpc_action: map(),
  select: [atom()],
  show_metadata: [atom()],
  sort: list() | nil,
  tenant: term()
}

Functions

new(params)

@spec new(map()) :: t()

Creates a new Request with validated parameters.