We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9423794 commit 75a3accCopy full SHA for 75a3acc
examples/changestream.php
@@ -23,6 +23,7 @@ function toJSON(object $document): string
23
return toRelaxedExtendedJSON(fromPHP($document));
24
}
25
26
+// Change streams require a replica set or sharded cluster
27
$client = new Client(getenv('MONGODB_URI') ?: 'mongodb://127.0.0.1/');
28
29
$collection = $client->test->coll;
examples/with_transaction.php
@@ -21,6 +21,7 @@ function toJSON(object $document): string
21
22
+// Transactions require a replica set (MongoDB >= 4.0) or sharded cluster (MongoDB >= 4.2)
0 commit comments