-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path#notes
27 lines (16 loc) · 764 Bytes
/
#notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
1)ReactiveMongoRepository
has some operations
in the project i implemented that
in the mongo-data-source-code
SimpleReactiveMongoRepository implements it
2)The operations Interface are inside
org.springframework.data.mongodb.core.ReactiveMongoOperations;
3)The implementations of ReactiveMongoOperations are inside ReactiveMongoTemplate
org.springframework.data.mongodb.core
For aggregation this is where i call the driver
AggregatePublisher<Document> cursor = collection.aggregate(pipeline, Document.class);
if (options.getCursorBatchSize() != null) {
cursor = cursor.batchSize(options.getCursorBatchSize());
}
And finally i do this
Flux.from(cursor).concatMap(readCallback::doWith);