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 (Strategy), deserializer
(Strategy), 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.
p (Pipeline): The pipeline to
modify.
… (KeywordArgs): Metadata
assignments as $field = value pairs.
where (Function): (Optional)
Predicate scoping which nodes are updated.
A new pipeline with updated node metadata.
p |> mutate_node($noop = true)
p |> mutate_node($serializer = ^pmml, where = $runtime == "R")