|
|
|
@ -2141,10 +2141,12 @@ public class ReactiveMongoTemplate implements ReactiveMongoOperations, Applicati |
|
|
|
publisher = filter.isEmpty() ? db.watch(Document.class) : db.watch(filter, Document.class); |
|
|
|
publisher = filter.isEmpty() ? db.watch(Document.class) : db.watch(filter, Document.class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(options.isResumeAfter()) { |
|
|
|
if (options.isResumeAfter()) { |
|
|
|
publisher = options.getResumeToken().map(BsonValue::asDocument).map(publisher::resumeAfter).orElse(publisher); |
|
|
|
publisher = options.getResumeToken().map(BsonValue::asDocument).map(publisher::resumeAfter) |
|
|
|
|
|
|
|
.orElse(publisher); |
|
|
|
} else if (options.isStartAfter()) { |
|
|
|
} else if (options.isStartAfter()) { |
|
|
|
publisher = options.getResumeToken().map(BsonValue::asDocument).map(publisher::startAfter).orElse(publisher); |
|
|
|
publisher = options.getResumeToken().map(BsonValue::asDocument).map(publisher::startAfter) |
|
|
|
|
|
|
|
.orElse(publisher); |
|
|
|
} |
|
|
|
} |
|
|
|
publisher = options.getCollation().map(Collation::toMongoCollation).map(publisher::collation) |
|
|
|
publisher = options.getCollation().map(Collation::toMongoCollation).map(publisher::collation) |
|
|
|
.orElse(publisher); |
|
|
|
.orElse(publisher); |
|
|
|
|