Perhaps I’m mis-reading the Mongo docs but it should be possible to find and update a MongoDB subfield without wiping adjacent fields using dot notation. Otherwise, I have to update the entire sub-doc so nothing gets deleted. Am I missing something about how n8n implements Mongo?
When I execute the workflow below, the existing data in “users” gets replaced with the updated “city”.
Information on your n8n setup
- [email protected]
- MongoDB Atlas 8.0.8
- n8n cloud
- Macos 15.4.1