Skip to content

Commit 07ffd24

Browse files
committed
Merge pull request #490
2 parents 1ee15ac + a8c65c7 commit 07ffd24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Collection.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,10 @@ public function watch(array $pipeline = [], array $options = [])
967967
$options['readConcern'] = $this->readConcern;
968968
}
969969

970+
if ( ! isset($options['typeMap'])) {
971+
$options['typeMap'] = $this->typeMap;
972+
}
973+
970974
$operation = new Watch($this->manager, $this->databaseName, $this->collectionName, $pipeline, $options);
971975

972976
return $operation->execute($server);

0 commit comments

Comments
 (0)