Upsert records in a collection
Upserts records in the specified collection. If a record with the given ID already exists, it will be updated. If it does not exist, it will be created. This combines the functionality of add and update into a single operation.