PHP 8.1.28 Released!

CollectionModify::patch

(No version information available, might only be in Git)

CollectionModify::patchdocument にパッチを当てる

説明

public mysql_xdevapi\CollectionModify::patch(string $document): mysql_xdevapi\CollectionModify

Patch オブジェクトを取得し、ひとつ以上のドキュメントに適用し、 そして複数のドキュメントのプロパティを更新します。

パラメータ

document

マッチするドキュメントに適用するプロパティを持ったドキュメント

戻り値

CollectionModify オブジェクトを返します。

例1 mysql_xdevapi\CollectionModify::patch() の例

<?php

$res
= $coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();

?>
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top