Ask coding questions

← Back to all posts
How to move from replit db to mongodb?
RedPenguin

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

Voters
RedPenguin
Comments
hotnewtop
MrVoo

Why do you want to move it? You probably don't need to

RedPenguin

@MrVoo The reason I want to move it is because I want the database to be accessed by multiple programs, not just than one replit project, and also for the future if I want to move my project to a different platform

MrVoo

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

RedPenguin

@MrVoo that's true, yeah I don't it matters that much. Thanks!