Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
请问下各位,假设表A里有一条记录是{"foo":{"bar":"baz"}} ,我用db.getCollection('A').aggregate([{$project:{"foo.bar":1}}]) 在shell中执行,可以得到结果,然后我在java代码里写就没有任何结果 。。
Aggregation.project("foo.bar");
与 萌阔论坛 的连接断开,我们正在尝试重连,请耐心等待