Ask coding questions

← Back to all posts
How do i store an object with @replit/database
vietanh266

I tried to store an object with @replit/database:

And when i log it out

The console:

Maybe i did it wrong, if you guys know how please comment below! Thanks!

Voters
Highwayman
Comments
hotnewtop
Highwayman

maybe try JSON.stringify()ing it first? I'm pretty sure it only stores text- might be wrong though..

Highwayman

hm.. after looking at that link I guess not. maybe it's something else? What repl are you doing this in?
@Highwayman