• 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
..
.static Loading commit data...
images Loading commit data...
includes Loading commit data...
reference Loading commit data...
tutorial Loading commit data...
index.txt Loading commit data...
pretty.js Loading commit data...
reference.txt Loading commit data...
tutorial.txt Loading commit data...
upgrade.txt Loading commit data...