Fork me on GitHub

del

Allows deleting object values

The del transform allows to delete values in an object-formatted datapoint.

[
  {},
  {"foo": "baz"},
  {"a": 1,"b":2,"foo":7}
]

With the above data, and the transform del("foo"), we get:

[
  {},
  {},
  {"a": 1,"b":2}
]

Remember that PipeScript has native support for json-like data. You can directly set objects with transforms like the following:

{"foo": "bar", "a": $("a")}

Transform Details

One-To-OneStatelessPeekInput SchemaOutput Schema
TrueTrueFalse

Arguments

#DescriptionOptionalConstantHijackedDefault
1The name of field to deleteFalseTrueFalse

This Site

Contribute

ConnectorDB is a very new open-source project. If you are a designer/developer or ML enthusiast, head on over to the connectordb github, where you can choose which part of ConnectorDB you want to contribute towards! Pull requests or bug reports are welcome!