db.ray_item_1.aggregate( [
{ $match: { _id: "581514053372"} },
{ $project: { price: 1, "skus.price":1} }
] ,{cursor:{"batchSize":1}})
这个mongodb查询语句如何使用spring-data-mongodb来写,特别是指定了子文档字段,发现一直不生效
db.ray_item_1.aggregate( [
{ $match: { _id: "581514053372"} },
{ $project: { price: 1, "skus.price":1} }
] ,{cursor:{"batchSize":1}})
这个mongodb查询语句如何使用spring-data-mongodb来写,特别是指定了子文档字段,发现一直不生效