Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
League
Monga
Query
Update
upsert
League\Monga\Query\Update::upsert PHP Method
Update Class Documentation
Show file
Open project: php-loep/monga
upsert()
public
method
Set the upsert option.
public
upsert
(
boolean
$upsert
= true ) :
object
$upsert
boolean
whether to allow upserts
return
object
$this
public function upsert($upsert = true) { $this->upsert = (bool) $upsert; return $this; }
Update
addToSet
atomic
getOptions
getUpdate
increment
multiple
pop
pull
pullAll
push
pushAll
remove
rename
set
single
unshift
update
upsert