I’m facing a challenge. Let’s see documents first
{
"FullName": "Sarajane Cazares",
"FromTime": "2023-02-21T19:00:00Z",
"ToTime": "2023-02-21T20:00:00Z",
...
}
...
{
"FullName": "Marissa",
"FromTime": "2023-02-21T20:00:00Z",
"ToTime": "2023-02-21T21:00:00Z",
...
}
As you can see, ToTime of doc1 and FromTime of doc2 are same. I need to find all documents where ToTime and FromTime values are same.
Is it possible using MongoDB?
Thanks