例如该集合的成员(即使不是很现实):
"_id" : "..... ",
"events" : [
{
"context" : "creation",
"eventDate" : ISODate("2019-01-16T10:33:46.759Z")
},
{
"context" : "renewal",
"contacts" : "Paul or Judith",
"beforeDate" : "2019-06"
},
etc ...
我只想打印上下文“更新”(如果存在)中的所有beforeDate,如果Frank在“联系人”字符串中,则显示