假设我有一个包含以下文档的集合:
...
{
event_counter : 3
event_type: 50
event_data: "yaya"
}
{
event_counter : 4
event_type: 100
event_data: "whowho"
}
...
是否可以要求:
for each document, e where e.event_type == 100
get me any document f where
f.event_counter = e.event_counter+1
或等效地:
find each f, where f.event_counter==e.event_counter+1 && e.event_type==100