Not getting any result in pymongo by find() function in my collection:
But if I loop that variable, then it loads:
The only thing I did is adding a loop (see line ):
for row in local_data:
print(row)
So if I put that loop it will load all rows and I will see retrieved: 46
How can I wait it to return results without looping like that? Something like mycollection.find().Wait()