Can't we use the createUpsert function for this?