MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /

MongoDB\ChangeStream Class

New in version 1.3.

MongoDB\ChangeStream

This class extends PHP's Iterator interface. An instance of this class is returned by MongoDB\Client::watch(), MongoDB\Database::watch(), and MongoDB\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.

Back

isAcknowledged()