-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Watch command. #32
Comments
I've never tried the watch command. |
I saw that TypeError when I had an inject node with the default timestamp being sent. I haven't figured out how to use the watch command, in node-red yet. With the native package you keep a reference to the cursor and use a while loop on it https://docs.mongodb.com/manual/reference/method/db.collection.watch/ |
nodered For your information my flow is attached, which I have used for testing. Unfortunately it does not work. node.js |
I looked into the problem further. The underlying library returns a ChangeStream Object. Currently the return value is ignored. I tried to change mongodb.js to take care of this ChangeStream Object. (see the attached diff) |
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!
The text was updated successfully, but these errors were encountered: