Convert record from Function call (RPC) to JSON
Hello, I am using raw SQL to run a function that returns a record, but it is returning it to the TS domain as a string like this:
instead of a JSON object with those values in key/value pairs.
How can Kysely parse this value and convert it to an object?
2 Replies
Return
to_json(theRow)
instead of the raw record
In case you're using postgresUnknown User•20h ago
Message Not Public
Sign In & Join Server To View