PHP Classes

File: vendor/mongodb/mongodb/docs/reference/method/MongoDBChangeStream-next.txt

Recommend this page to a friend!
  Classes of walid laggoune   MongoDB Queue PHP Query Execute   vendor/mongodb/mongodb/docs/reference/method/MongoDBChangeStream-next.txt   Download  
File: vendor/mongodb/mongodb/docs/reference/method/MongoDBChangeStream-next.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: MongoDB Queue PHP Query Execute
Query and execute multiple queries using MongoDB
Author: By
Last change:
Date: 4 years ago
Size: 1,085 bytes
 

Contents

Class file image Download
============================= MongoDB\\ChangeStream::next() ============================= .. default-domain:: mongodb .. contents:: On this page :local: :backlinks: none :depth: 1 :class: singlecol Definition ---------- .. phpmethod:: MongoDB\\ChangeStream::next() Advances the change stream and attempts to load the next event. .. code-block:: php function next(): void .. note:: Advancing the change stream does not guarantee that there will be a current event to access. You should still call :phpmethod:`MongoDB\\ChangeStream::valid()` to check for a current event at each step of iteration. Errors/Exceptions ----------------- .. include:: /includes/extracts/error-driver-runtimeexception.rst See Also -------- - :phpmethod:`MongoDB\\Client::watch()` - :phpmethod:`MongoDB\\Collection::watch()` - :phpmethod:`MongoDB\\Database::watch()` - :php:`Iterator::next() <iterator.next>` - :ref:`Tailable Cursor Iteration <php-tailable-cursor>` - :manual:`Change Streams </changeStreams>` documentation in the MongoDB manual