I want to call an JavaScript function and pass document key values as a parameters to the function , in latest version of mongo dB there is pipeline operator called $f
$f