public Flux<PortCall> updateByFindById(String gsisKey, PortCall portCall) {
return portCallRepository.findAllByVesselCode(portCall.getVesselCode())
.collectList().flatMap(list->{
return portCallRepository.saveAll(Flux.fromIterable(list));
});
}
Here I'm trying to invoke saveAll() of SimpleReactiveMongoRepository i.e public Flux saveAll(Iterable entities)
`. A `Flux` is not a `Iterable`. Try just calling `portCallRepository.saveAll(list)`. Or just skip the `collectList` and use `save` it will still just make a single transaction to the database.– Toerktumlare Jan 31 '21 at 20:10