How to move from replit db to mongodb?

I want to move the contents of my db from replit db to MongoDB. I have written this code to try to move it:

however I get an error telling me that:
Object of type ObservedDict is not JSON serializable

how can I solve this

You are viewing a single comment. View All

@RedPenguin Does it matter if it's reset? You can just change it if it doesn't