field
any →
field(
name: text
) → any
Returns the value of the named field from the input record or object. Returns null when the field does not exist or the input does not expose named values.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | text | Yes | Name of the field to retrieve from the input. |
Argument evaluation
name: Evaluated once in the enclosing context.
Examples
{name := "Ada", score := 10} | field("name") → "Ada"
Kind: Function
Scope: record
Aliases: None