Skip to content

Commit

Permalink
feat: added insert as operationType
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcoplutino committed May 28, 2024
1 parent 47568fe commit 4f5c879
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ private void initOrderStream() {
if(Objects.nonNull(resumeToken))
options = options.resumeAfter(BsonDocument.parse(resumeToken));

Bson match = Aggregates.match(Filters.in("operationType", asList("update", "replace")));
Bson match = Aggregates.match(Filters.in("operationType", asList("update", "replace", "insert")));
Bson project = Aggregates.project(fields(include("_id", "ns", "documentKey", "fullDocument")));
List<Bson> pipeline = Arrays.asList(match, project);

Expand Down

0 comments on commit 4f5c879

Please sign in to comment.