You are viewing an offline version of MongoDB documentation. Some page features might be unavailable. To view the latest version of the page or use interactive features, visit the live page.
MongoDB\ChangeStream Class
New in version 1.3.
Definition
MongoDB\ChangeStreamThis class extends PHP's Iterator interface. An instance of this class is returned by
MongoDB\Client::watch(),MongoDB\Database::watch(), andMongoDB\Collection::watch().This class allows for iteration of events in a change stream. It also allows iteration to automatically resume after certain errors, such as a replica set failover.