MongoDB: How to stop and resume change stream
How to stop a mongodb changestream temporarily and resume it again? public Flux<Example> watch() { final ChangeStreamOptions changeStreamOptions = ChangeStreamOptions.builder().returnFullDocumentOnUpdate().build(); return reactiveMongoTemplate.changeStream("collection", changeStreamOptions, Example.class) .filter(e -> e.getOperationType() != null) .mapNotNull(ChangeStreamEvent::getBody); } I'm trying to create a rest endpoint that should…