Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Latest commit

 

History

History
33 lines (26 loc) · 484 Bytes

README.md

File metadata and controls

33 lines (26 loc) · 484 Bytes

omit function

omit() will remove any fields specified from the message and then send down the pipeline. It currently only works for top level fields (i.e. address.street would not work).

configuration

omit({"fields": ["name"]})

example

message in

{
    "_id": 0,
    "name": "transporter",
    "type": "function"
}

config

omit({"fields":["type"]})

message out

{
    "_id": 0,
    "name": "transporter"
}