mutate_node

Mutate Pipeline Node Metadata

Modifies metadata fields on pipeline nodes. Supports a where named argument to scope changes to a subset of nodes. Without where, all nodes are affected. Mutable metadata fields: noop (Bool), serializer (String), deserializer (String), runtime (String), deps (List[String]), functions (List[String]), include (List[String]), env_vars (Dict), args (Dict), shell (String), shell_args (List[String]), flake (String). The where clause uses NSE ($field) just like filter_node.

Parameters

Returns

A new pipeline with updated node metadata.

Examples

p |> mutate_node($noop = true)
p |> mutate_node($serializer = "pmml", where = $runtime == "R")

See Also

rename_node, filter_node