我尝试使用mongo查询中的查询来检索以下数据。
Data
{
"_id":objectid(123123),
"Reading":89,
"Time":1323,
"Company":"test" }
ProjectionDefinition<BsonDocument> project = Builders<BsonDocument>.Projection.Include("Reading").Include("TIme").Exclude("_id");
FilterDefinition<BsonDocument> filterDefintion = Builders<BsonDocument>.Filter.Eq("Company","test");
collection.Find(filterDefintion).Project(project).ToList();
预期结果:
[
89,
1323
]
实际结果是
{“阅读”:89,“时间”:1323}
有可能吗?