Using inputs from previous nodes in MongoDB (?)

Basically I’m trying to use the inputs from previous nodes in MongoDB. The problem is that when I try to reference the data it uses the value as the key, so the only way to use inputs if the data is in the previous node.

Is there a way to use the data from previous nodes? Thanks

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @antonk1306 :wave: Welcome to the community :tada:

Can you give an example of when you’re running into this? Have you tried using an expression starting with $('MongoDB'). (or whatever you may have renamed the MongoDB node) and seeing if you can reference the items that way? It’s unfortunately difficult to give specific examples without knowing your exact data structure, but that should get you started :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.