---
title: MongoDB
slug: mongodb
docTags: 
createdAt: 2021-10-19T06:21:14.000Z
---

If your catalogue or inventory feed is present in MongoDB, Vizury can connect to your MongoDB database through read-only user permission for target collections.

<u>Version Support</u>: We support MongoDB latest version **5.x** & Vizury is also compatible with **4.x**

<u>Official drivers</u> for MongoDB database connection:

::Image[]{src="https://api.archbee.com/api/optimize/GarybocXutX5z03hF58_X/5BkgjNptN4Z7_K2BcOIYW_screenshot-2021-10-19-at-115506-am.png" size="96" width="2092" height="966" position="flex-start" showCaption="false"}

<u>Integration Process</u>:

We can deploy standalone scripts on the server that can connect to your MongoDB database via native official drivers, these scripts are independent and protected by our VPC & access policies.&#x20;

Once we receive *new user credentials* with the required read-only permission set by the client, Vizury will place these credentials within the script by running <u>CRON</u> at regular intervals to trigger the scripts.&#x20;

:::hint{type="info"}
<u>NOTE</u>:  The default CRON intervals are 30 mins, The client is free to set the trigger intervals (SLA) by logging into our retail portal.&#x20;
:::

In case if there are any specific write operations required for ex: if a customer has placed an order or booking through our APIs, we can perform a write operation of the entity on your MongoDB database collection.&#x20;

<u>Integration Architecture </u>:

::Image[]{src="https://api.archbee.com/api/optimize/GarybocXutX5z03hF58_X/LAWPLasEA3VZHHkqsyyiZ_screenshot-2021-10-19-at-123807-pm.png" size="84" width="1702" height="1188" position="flex-start" showCaption="false"}

:::hint{type="success"}
<u>NOTE:</u> Our scripts map your catalogue & inventory schema to Vizury API schema in order to make API calls in the background.&#x20;
:::

<u>Integration Credentials </u>:

We support below MongoDB providers:

- MongoDB Atlas
- AWS Document DB
- Standalone MongoDB installation (Community edition or Enterprise)

You can share the credentials in the form of a connection string as explained below:

The standard URI connection scheme:

*mongodb://\[username\:password@]host1\[:port1]\[,...hostN\[:portN]]\[/\[defaultauthdb]\[?options]]*

| Component           | Description                                                                                                |
| ------------------- | ---------------------------------------------------------------------------------------------------------- |
| mongodb://          | A required prefix to identify that this is a string in the standard connection format.                     |
| host\[:port]        | The host (and optional port number)                                                                        |
| username\:password@ | Authentication credentials.                                                                                |
| ?\<options>         | Optional. A query string that specifies connection specific options, Please refer to MongoDB Official Docs |

For a standalone:

*mongodb://mongodb0.example.com:27017*

(Above host URL & User credentials with database name)
