MongoDB Atlas Change Data Capture Setup with Streamkap
streamkap_user
)
readAnyDatabase
read
on the local
databasestreamkap_user
. The Connector will use this collection for managing snapshots. Below is an example script that does that.
This collection can exist in a different database (on the same MongoDB cluster) to the database Streamkap captures data from.
streamkap_signal
. It will not be recognised if given another name.+
button next to the database name.
streamkap_signal
.readWrite
on the streamkap_signal
collection.readWrite@{database}.streamkap_signal
db.getMongo()
method to return your connection string
w=majority
readPreference=primaryPreferred
Array
encodes them as a JSON array but requires all elements in the arrays to be of the same type e.g. array of integers. Array_String
encodes them as a JSON string and must be used if the MongoDB arrays have mixed types.Document
encodes them as JSON objects but may be problematic for complex (e.g. multiple levels of nested sub documents and arrays, sub arrays of nested documents) documents. String
encodes them as a JSON string and we recommend it if the MongoDB nested documents are complex.public
. See Enable Snapshots for more information.