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

Latest commit

 

History

History

pick

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

pick function

pick() will only include the specified fields from the message when sending down the pipeline. It currently only works for top level fields (i.e. address.street would not work).

configuration

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

example

message in

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

config

pick({"fields":["_id", "name"]})

message out

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