Merging new + existing values from a database record when updating from an upsert

Hey all!

In the event of an update when upserting would there be any possible way to get the value of a JSONB column so we can merge it with new values? We don’t want to overwrite the JSONB column with new values in the event the record already has a value. We also have some custom application logic on how to merge.