S
SolidJS8mo 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
brenelz8mo ago
You probably need to use a server function and createAsync
Luka
LukaOP8mo ago
It works thanks

Did you find this page helpful?