PHP - Manual: CollectionModify::patch
2024-12-22
(No version information available, might only be in Git)
CollectionModify::patch — Patch document
Takes a patch object and applies it on one or more documents, and can update multiple document properties.
本函数还未编写文档,仅有参数列表。
document
A document with the properties to apply to the matching documents.
A CollectionModify object.
示例 #1 mysql_xdevapi\CollectionModify::patch() example
<?php
$res = $coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();
?>
官方地址:https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.patch.php