Okay, so pardon me if I don't make much sense. I face this 'ObjectId' object is not iterable whenever I run the collections.find() functions. Going through the answers here, I'm not sure where to start. I'm new to programming, please bear with me.
Every time I hit the route which is supposed to fetch me data from Mongodb, I getValueError: [TypeError("'ObjectId' object is not iterable"), TypeError('vars() argument must have __dict__ attribute')].
Help
use db.collection.find(ObjectId:"12348901384918")
here db.collection is database name and use double quotes for the string .
"ObjectId' object is not iterable" error, while fetching data from MongoDB Atlas