I have a calls collection which documents are like:
{ _id: 'abcdefg', timestamp: 1510328686448 }
I want to get, based on a call id, the previous and the following call.
I know that this can be easily done with two queries but I have to limit the latency.
Can any one guide me to build the correct aggregation pipeline to achieve this?