How to update collection from D3 js object

Good day… i have a d3 js tree layout project… i want to update the Mongo DB Collection, anyone could assist me how to update the database…

br,