Skip to content
Sign UpLog In
Profile icon

vietanh266

@vietanh266
Repls
Community
vietanh266
vietanh266
shared a Post
1 year ago
How do i store an object with @replit/database
I tried to store an object with @replit/database: await client.set("hello", { something: true, }); And when i log it out const hello = await client.
Highwayman
Highwayman
maybe try JSON.stringify()ing it first? I'm pretty sure it only stores text- might be wrong though..1 year ago