我有一个mongodb集合“用户”,它以以下格式存储文档- "_id" : ObjectId("53fe7ae0ef038fee879263d5"), public static List<BsonDocument> LoadDataByWhere (string/ Here table is the collection
我想知道如何通过MongoDB版本1.7查询嵌入文档(数组中)的集合?通过查询嵌入式文档,我的意思是只检索嵌入的文档,而不检索包含它的文档AKA 。使用嵌入式文档的数据模型的示例,我正在查询:{ Categories: [{_id: 2,, Books: [{_id: 3, Name: The Count of Monte Cristo}]}