parameterized insert and update

How does one do parameterized inserts and updates?

When I try and do something like this:
const preparedUpdate = db
    .update(TaskTable)
    .set({
        title: eq(TaskTable.id, sql.placeholder('title')),
    })
    .where(eq(TaskTable.id, sql.placeholder('id')))
    .returning()
    .prepare('Task.update');


I get "expression is of type boolean" for all the columns.
ERR PostgresError: column "title" is of type status but expression is of type boolean
   ...


Is there another syntax necessary for placeholder in set?

Thanks for your help.
Was this page helpful?