Hi there, trying to use the watch command,
msg.collection="jobs";
msg.operation="watch";
var pipeline = null;
var options ={
fullDocument:"default"
};
msg.payload = [pipeline,options];
return msg;
im getting error
"TypeError: Cannot create property 'readPreference' on number '1542372194371'"
Any ideas? Thanks!
Hi there, trying to use the watch command,
msg.collection="jobs";
msg.operation="watch";
var pipeline = null;
var options ={
fullDocument:"default"
};
msg.payload = [pipeline,options];
return msg;
im getting error
"TypeError: Cannot create property 'readPreference' on number '1542372194371'"
Any ideas? Thanks!