How to I get a specific data from one node to store in function node

Hey, I am not too sure how I can get data (the name) from MongoDB using the Function node.
image
This is what i have written in the function node. The count output gets returned when the name variable is removed.
image

Hey @ruby09, do you want to access data from all three MongoDB nodes at the same time in your Function node? If so, you’d need to put them in sequential order. Otherwise, your Function node would only be able to see the items of your current execution.

Here’s an example showing the idea using different Set nodes:

1 Like

Hey @MutedJam
Thank you so much!
The Name is different for each MongoDB node so I want the output for name to be different just like the count.
My current function node code
image
Example of how my output looks like now.
tempsnip
tempsnip

Update, I have managed to find the way to do it! Thanks for your help @MutedJam

1 Like

Glad to hear, thanks so much for confirming!

1 Like