upsert
nounEtymology Blend of update + insert.
1
Computing, Databases, Engineering, Mathematics, Natural sciences, Physical sciences, Sciences An operation that inserts rows into a database table if they do not already exist, or updates them if they do.
- The upsert option lets you specify whether the update should be an upsert—that is, it tells MongoDB to update the record if it exists, and create it if it doesn't.2013, David Hows, Eelco Plugge, Peter Membrey, Tim Hawkins, The Definitive Guide to MongoDB, Apress, →ISBN, page 66: