Mapping converter not applied for `ReactiveMongoTemplate::findAndReplace`
I have registered a MappingMongoConverter component to perform custom conversions for all document reads and writes. When performing find / findOne / etc. operations, this works as expected. However, when using ReactiveMongoTemplate::findAndReplace, the conversion is not applied on the returned document (the MappingMongoConverter::read method is not called). Is this expected behavior? Thanks in advance!
No, the imperative and reactive templates should map from/to documents using same conversion strategies. If you'd like us to spend some time investigating, please take the time to provide a complete minimal sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
A minimal reproducible example can be found in this repository: https://github.com/joostfarla/spring-data-mongodb-4865.
The DemoApplicationTests class demonstrates the failing and succeeding scenarios. If you need any additional information, please let me know!