将集合导出为 JSON

运行 meteor,打开另一个终端窗口,然后运行以下命令。

mongoexport --db meteor --collection foo --port 3001 --out foo.json