I'm not sure how to go about this, I need to export a mongodb collection as an .csv. Calling mongoexport with spawn.child_process in node will accomplish this but my mongodb server and node server are currently on separate machines.
How can I remotely call mongoexport on my mongo server from my node server and then get the .csv to the node server?