MongoDB Source: Expose Change Stream fullDocument option (e.g. UPDATE_LOOKUP) in source-mongodb-v2 #71303
Replies: 1 comment
-
|
For MongoDB Change Streams with Airbyte, the UPDATE_LOOKUP option isnt directly exposed in the connector config yet. But you have a few workarounds:
ChangeStreamIterable<Document> changeStream = collection.watch()
.fullDocument(FullDocument.UPDATE_LOOKUP);
The cleanest solution is option 1 if youre comfortable building the connector, or option 4 to get official support. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The MongoDB v2 source connector uses MongoDB Change Streams for CDC, but currently does not expose any configuration option to control the
fullDocumentbehavior (e.g.DEFAULTvsUPDATE_LOOKUP).By default, update events only include
_idandupdateDescription, andfullDocumentisnull. For many CDC use cases (data lakes, audit logs, downstream transformations, idempotent upserts), consumers require the full post-update document.MongoDB Change Streams natively support this via:
fullDocument: "updateLookup"
but unable to find a way to enable this via:
Any suggestions or guidance to help get this working would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions