如何硬编码mongoexport字段数据

时间:2015-04-13 04:12:38

标签: mongodb field mongoexport

我的MongoExport将拉出三个字段 --fields firstname,lastname,email,city

输出:

firstname,lastname,email,city
"Fn1","Ln1","abc@abc.com","chicago"
"Fn2","Ln2","xyz@xyz.com","atlanta"

我希望隐藏电子邮件,因此我需要一个硬编码的价值' EMAIL'而不是实际的电子邮件。

"Fn1","Ln1","EMAIL","chicago"
"Fn2","Ln2","EMAIL","atlanta"

可以在mongo export中完成吗?

0 个答案:

没有答案