I have two collections "transactions and books", I applied the $project operator to find the difference between the two dates and I got the result with minutes, so then I used the $lookup operator to join the two collections and to get as a result to each duration the info of its book, but as you can see, the result shown all the books for every duration :(
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)