Method: XGen::Mongo::Driver::Collection#repsert
- Defined in:
- lib/mongo/collection.rb
#repsert(selector, obj) ⇒ Object
Update records that match selector by applying obj as an update. If no match, inserts (???).
99 100 101 |
# File 'lib/mongo/collection.rb', line 99 def repsert(selector, obj) @db.repsert_in_db(@name, selector, obj) end |