标签: mongodb mongodb-query aggregation-framework aggregate
db.test.aggregate({ $project: { _id: 0, data: 1, numOfDocument: "120", entity_doc_count: numOfDocument } })
如何将 numOfDocument 归档值分配给 entity_doc_count 谢谢。