ozomer / node-red-contrib-mongodb2

MongoDB driver node for Node-RED
Apache License 2.0
15 stars 19 forks source link

Lookup? #14

Closed hamild closed 6 years ago

hamild commented 6 years ago

Is there a way to perform $lookup ? As I understand it, this is the equivalent of a JOIN in SQL. I am very new to MongoDB, so apologies in advance if this is off topic.

ozomer commented 6 years ago

You can find all the operations here: http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html . The node-red-contrib-mongodb2 node simply calls those functions, using msg.payload for parameters (msg.payload[0] for the first parameter, msg.payload[1] for the second parameter, etc.).