Toggle navigation
Hot Examples
ZH
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
搜索
Home
yii
mongodb
Query
exists
yii\mongodb\Query::exists PHP Method
Query Class Documentation
显示文件
Open project: yiisoft/yii2-mongodb
exists()
public
method
Returns a value indicating whether the query result contains any row of data.
public
exists
(
Connection
$db
= null ) :
boolean
$db
Connection
the Mongo connection used to execute the query. If this parameter is not given, the `mongodb` application component will be used.
return
boolean
whether the query result contains any row of data.
public function exists($db = null) { return $this->one($db) !== false; }
Query
addOptions
aggregate
all
andFilterCompare
average
batch
buildCursor
column
composeCondition
count
distinct
each
exists
fetchRows
fetchRowsInternal
from
getCollection
max
min
modify
one
options
populate
scalar
select
sum