Handling JSONB fields in SQL queries with TypeScript can be tricky due to type constraints. In yo...
I'm trying to migrate an insert from postgres to
This is the original code:
So far I changed to this
But seems like
I get a TS error that my complex columns socials and settings are not of
How should one workaround this?
@effect/sql.This is the original code:
So far I changed to this
But seems like
sql.insert doesnt like the fact that "socials" and "settings" are complex objects, that are to be inserted in a JSONB field.I get a TS error that my complex columns socials and settings are not of
Primitive | Fragment | undefined' .How should one workaround this?
