Developers LinkApi

Data Sync

This step by step will show you how an integration flow of a data synchronization from an external Component to LinkApi's platform is, and how to send this data to a MongoDB's Component inside our platform.

On our example, the main goal is making queries for products registered in MongoDB.

You can learn how to build a MongoDB Component in our platform with our BI use case, we'll add a new resource to it, named products. To add it, just go to "Add resource" and specify its settings. For this example, we'll use all of the available methods (get, post, put and delete)

Having the resource added, we'll create a new project. Go to Builder > Automations > New Automation and start the configuring. In this project, we'll only use the MongoDB Component, so you should select it and proceed to the next step.

Now the project is created, we have to set our first automation, which we'll name products.js and change the data parameter to products.

Copy the parallel function snippet from the snippets menu, on the upper left.

On our example, we are aiming at receiving products information, so we can change collection to products on the pasted snippet.

In order to send information to our database, we'll need to post them in MongoDB. To do it, select this function within the Component menu (lower left) and paste it on the indicated area (Do your logic here).

As long as we need the view of the items, we have to indicate it in body:

Updated 5 months ago

Data Sync


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.