Skip to content

Commit

Permalink
use local cdk
Browse files Browse the repository at this point in the history
  • Loading branch information
FilahAnas committed Mar 28, 2024
1 parent 03efd15 commit e6ff9c3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

package io.airbyte.integrations.source.mongodb;

import com.mongodb.ReadConcern;
import com.mongodb.client.MongoCollection;
import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.*;
Expand Down Expand Up @@ -50,7 +51,7 @@ public List<AutoCloseableIterator<AirbyteMessage>> getIterators(
.stream()
.map(airbyteStream -> {
final var collectionName = airbyteStream.getStream().getName();
final var collection = database.getCollection(collectionName);
final var collection = database.getCollection(collectionName).withReadConcern(ReadConcern.LOCAL);
final var fields = Projections.fields(Projections.include(CatalogHelpers.getTopLevelFieldNames(airbyteStream).stream().toList()));

final var idTypes = aggregateIdField(collection);
Expand Down

0 comments on commit e6ff9c3

Please sign in to comment.