I've created a string
new_collection_name = "new_name"
And then tried to use that variable to reference the collection without any success.
for item in db.new_collection_name.find():
Is it actually possible to do this using a variable, or should I change my approach?
db.getCollection(new_collection_name).find()