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+