由于某种原因,我无法在mongo中评估此简单字符串,我认为这是因为$exists
参数。
mongo database --eval "db.products.find({'csv': {'$exists': false}}, {'original.name': true, 'original.sku': true})"
Your quotes are the wrong way around. Use '
on the wrapping of the statement rather than "
. Just the important parts:
--eval 'db.products.find({ "csv": { "$exists": false } })'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.