Click here to Skip to main content
15,666,286 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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 :(


What I have tried:

Hey ! could anyone help me ^^
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 :(
P.s : I'm new here and I didn't find how to upload the screenshot ,)
Posted
Updated 20-Sep-22 22:12pm
Comments
Richard MacCutchan 21-Sep-22 4:14am    
"but as you can see"
Sorry, but we cannot see. You are not allowed to post images here owing to the dangers posed by spammers. You need to either copy the text and add it to your question, or post the image on a sharing site and post the link in your question.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900