|
MongoDB\Driver\BulkWriteCommand::insertOneAdd an insertOne operation 説明
public mixed MongoDB\Driver\BulkWriteCommand::insertOne(string
$namespace , arrayobject $document )
Add an insertOne operation to the
MongoDB\Driver\BulkWriteCommand. The document will
be inserted into the collection identified by
パラメータ
戻り値
Returns the エラー / 例外
例例1 MongoDB\Driver\BulkWriteCommand::insertOne example
上の例の出力は、 たとえば以下のようになります。 object(MongoDB\BSON\ObjectId)#3 (1) { ["oid"]=> string(24) "67f58058d1a0aa2fd80d55d0" } string(9) "custom-id" object(MongoDB\BSON\ObjectId)#4 (1) { ["oid"]=> string(24) "0123456789abcdef01234567" } 参考
|