• Jeremy Mikola's avatar
    Watch processes its own options and relies on Aggregate for others · b9b068d5
    Jeremy Mikola authored
    Previously, Watch did not validate the "fullDocument" option and neglected to pass "readConcern" and "readPreference" to Aggregate. This refactors the class so that Watch only processes its own options.
    
    Additionally, Aggregate is now first created from Watch::__construct() instead of Watch::execute(), which allows its options to be validated earlier (akin to FindOne creating Find in its constructor). Aggregate is only recreated if a new resume token is provided during a resume.
    b9b068d5
Name
Last commit
Last update
..
Collection Loading commit data...
Database Loading commit data...
GridFS Loading commit data...
Model Loading commit data...
Operation Loading commit data...
ClientFunctionalTest.php Loading commit data...
ClientTest.php Loading commit data...
CommandObserver.php Loading commit data...
DocumentationExamplesTest.php Loading commit data...
FunctionalTestCase.php Loading commit data...
FunctionsTest.php Loading commit data...
PedantryTest.php Loading commit data...
TestCase.php Loading commit data...
bootstrap.php Loading commit data...