JAVA-6258In Progress

Support arbitrary aggregate command options in ChangeStreamIterable/Publisher, AggregateIterable/Publisher

h2. Support CustomOptions on ChangeStreamOptions and AggregateOptions Many of our customers on MongoDB 7 and lower have kafka related workflows that connect and read directly from a shard.  MongoDB 8 prevents this, but the custom option $_passthroughToShard allows for this.  Furthermore, the mongodb kafka connector is built on Java, and without these custom options, the connector is unable to directly read from a shard in MongoDB 8+

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue
AggregationChange StreamsCRUD
Labels
Tags and classification
q3-product-priority