S
SolidJS6mo ago
Luka

How does serializing work

I am trying to fetch a object that I got from mongodb, but when doing return json(object, { status: 200 }) and then const response = await get_user(prof_id); const data = await response.json() The following error is logged "The value [object Object] of type "object" cannot be parsed/serialized."
2 Replies
brenelz
brenelz6mo ago
You probably need to use a server function and createAsync
Luka
LukaOP6mo ago
It works thanks
Want results from more Discord servers?
Add your server