MongoDB\BSON\Document::has
Returns whether a key is present in the document
説明
final public bool MongoDB\BSON\Document::has(string $key
)
パラメータ
-
key
(string)
-
The key to look for in the document.
戻り値
Returns true
if the key is present in the document and false
otherwise.
エラー / 例外
- Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.