Use the MongoDB Connector to send data from Decodable to MongoDB. If you are looking for information about how to create a connection to get data from MongoDB into Decodable, see MongoDB CDC in the Connect to a data source chapter.
|Delivery guarantee||exactly once|
|Supported stream types|
Follow these steps to get data into MongoDB. These steps assume that you are using Decodable Web interface. However, if you want to use the Decodable CLI to create the connection, you can refer to the Property Name column for information about what the underlying property names are.
- From the Connections page, select the MongoDB Connector and complete the following fields.
|UI Field||Property Name in the Decodable CLI||Description|
|Connection String||The connection string for your Mongodb cluster without your username and password. Decodable supports both the Standard Connection String and DNS Seed List Connection String formats.|
|Database||The name of the database containing the collection that you want to send data to.|
|Collection||The name of the collection to send data to.|
|Username||Your MongoDB username.|
|Password||The secret containing your MongoDB password.|
- Select the stream that you’d like to connect to this connector. This will be the stream that sends records from Decodable into MongoDB. Then, select Next.
- Define the connection’s schema. Select New Schema to manually enter the fields and field types present or Import Schema if you want to paste the schema in the form of an Avro or JSON array.
- The stream's schema must match the schema of the data that you plan on sending through this connection.
- For more information about creating a stream or defining the stream schema, see Create a Stream.
- Select Next when you are finished providing defining the connection’s schema.
- Give the newly created connection a Name and Description and select Save.
Start the connection and observe data flow into your MongoDB instance.
Updated 5 months ago