Learn R Programming

rmongodb (version 1.8.0)

mongo.update.upsert: mongo.update() flag constant for an upsert

Description

Flag to mongo.update() (1L): insert ObjNew into the database if no record matching criteria is found.

Usage

mongo.update.upsert

Arguments

Value

1L

Format

 int 1

See Also

mongo.update, mongo.update.multi, mongo.update.basic.