From df9db39a1eaddd526152c31d3311b5a6287cc227 Mon Sep 17 00:00:00 2001 From: Paul Cornell Date: Thu, 3 Oct 2024 10:06:30 -0700 Subject: [PATCH 1/2] MongoDB source and destination connectors for Platform --- mint.json | 2 ++ platform/connectors.mdx | 2 ++ platform/destinations/overview.mdx | 1 + platform/sources/mongodb.mdx | 24 +++++++++++++++++++ platform/sources/overview.mdx | 1 + .../general-shared-text/mongodb-platform.mdx | 2 +- 6 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 platform/sources/mongodb.mdx diff --git a/mint.json b/mint.json index 67239f84..0846cc64 100644 --- a/mint.json +++ b/mint.json @@ -434,6 +434,7 @@ "pages": [ "platform/sources/overview", "platform/sources/azure-blob-storage", + "platform/sources/mongodb", "platform/sources/s3" ] }, @@ -442,6 +443,7 @@ "pages": [ "platform/destinations/overview", "platform/destinations/azure-cognitive-search", + "platform/destinations/mongodb", "platform/destinations/pinecone", "platform/destinations/s3" ] diff --git a/platform/connectors.mdx b/platform/connectors.mdx index 41bef144..a863f057 100644 --- a/platform/connectors.mdx +++ b/platform/connectors.mdx @@ -12,6 +12,7 @@ The Unstructured Platform supports connecting to the following source and destin ## Sources - [Azure](/platform/sources/azure-blob-storage) +- [MongoDB](/platform/sources/mongodb) - [S3](/platform/sources/s3) If your source is not listed here, you might still be able to connect Unstructured to it through scripts or code by using the @@ -22,6 +23,7 @@ If your source is not listed here, you might still be able to connect Unstructur ## Destinations - [Azure Cognitive Search](/platform/destinations/azure-cognitive-search) +- [MongoDB](/platform/destinations/mongodb) - [Pinecone](/platform/destinations/pinecone) - [S3](/platform/destinations/s3) diff --git a/platform/destinations/overview.mdx b/platform/destinations/overview.mdx index c9fbf686..68602686 100644 --- a/platform/destinations/overview.mdx +++ b/platform/destinations/overview.mdx @@ -15,6 +15,7 @@ To create a destination connector: 4. Fill in the fields according to your connector type. To learn how, click your connector type in the following list: - [Azure Cognitive Search](/platform/destinations/azure-cognitive-search) + - [MongoDB](/platform/destinations/mongodb) - [Pinecone](/platform/destinations/pinecone) - [S3](/platform/destinations/s3) diff --git a/platform/sources/mongodb.mdx b/platform/sources/mongodb.mdx new file mode 100644 index 00000000..bb5a3e14 --- /dev/null +++ b/platform/sources/mongodb.mdx @@ -0,0 +1,24 @@ +--- +title: MongoDB +--- + +Ingest your files into Unstructured from MongoDB. + +You'll need: + +import MongoDBPrerequisites from '/snippets/general-shared-text/mongodb.mdx'; + + + +To create the source connector: + +1. On the sidebar, click **Sources**. +2. Click **New Source**. +3. In the **Type** drop-down list, select **MongoDB**. +4. Fill in the fields as described later on this page. +5. Click **Save and Test**. +6. Click **Close**. + +import MongoDBFields from '/snippets/general-shared-text/mongodb-platform.mdx'; + + \ No newline at end of file diff --git a/platform/sources/overview.mdx b/platform/sources/overview.mdx index 37ac10b0..145d923b 100644 --- a/platform/sources/overview.mdx +++ b/platform/sources/overview.mdx @@ -16,6 +16,7 @@ To create a source connector: 4. Fill in the fields according to your connector type. To learn how, click your connector type in the following list: - [Azure](/platform/sources/azure-blob-storage) + - [MongoDB](/platform/sources/mongodb) - [S3](/platform/sources/s3) 5. Click **Save and Test**. diff --git a/snippets/general-shared-text/mongodb-platform.mdx b/snippets/general-shared-text/mongodb-platform.mdx index 4ba92e71..d7c010d8 100644 --- a/snippets/general-shared-text/mongodb-platform.mdx +++ b/snippets/general-shared-text/mongodb-platform.mdx @@ -3,4 +3,4 @@ Fill in the following fields: - **Name** (_required_): A unique name for this connector. - **URI** (_required_): The MongoDB instance connection URI. - **Database** (_required_): The name of the database on the instance. -- **Collection**: The name of the collection within the database. \ No newline at end of file +- **Collection** (_required_): The name of the collection within the database. \ No newline at end of file From c2633e62deba977542ad2be23c270ccc8b766cb1 Mon Sep 17 00:00:00 2001 From: Paul Cornell Date: Wed, 16 Oct 2024 08:27:07 -0700 Subject: [PATCH 2/2] Update UI steps for adding a MongoDB connector --- platform/destinations/mongodb.mdx | 14 ++++++++------ platform/sources/mongodb.mdx | 14 ++++++++------ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/platform/destinations/mongodb.mdx b/platform/destinations/mongodb.mdx index 9d09c3c4..bf006c2e 100644 --- a/platform/destinations/mongodb.mdx +++ b/platform/destinations/mongodb.mdx @@ -12,12 +12,14 @@ import MongoDBPrerequisites from '/snippets/general-shared-text/mongodb.mdx'; To create the destination connector: -1. On the sidebar, click **Destinations**. -2. Click **New Destination**. -3. In the **Type** drop-down list, select **MongoDB**. -4. Fill in the fields as described later on this page. -5. Click **Save and Test**. -6. Click **Close**. +1. On the sidebar, click **Connectors**. +2. Click **Destinations**. +3. Click **Add new**. +4. Give the connector some unique **Name**. +5. In the **Provider** area, click **MongoDB**. +6. Click **Continue**. +7. Follow the on-screen instructions to fill in the fields as described later on this page. +8. Click **Save and Test**. import MongoDBFields from '/snippets/general-shared-text/mongodb-platform.mdx'; diff --git a/platform/sources/mongodb.mdx b/platform/sources/mongodb.mdx index bb5a3e14..9477a247 100644 --- a/platform/sources/mongodb.mdx +++ b/platform/sources/mongodb.mdx @@ -12,12 +12,14 @@ import MongoDBPrerequisites from '/snippets/general-shared-text/mongodb.mdx'; To create the source connector: -1. On the sidebar, click **Sources**. -2. Click **New Source**. -3. In the **Type** drop-down list, select **MongoDB**. -4. Fill in the fields as described later on this page. -5. Click **Save and Test**. -6. Click **Close**. +1. On the sidebar, click **Connectors**. +2. Click **Sources**. +3. Click **Add new**. +4. Give the connector some unique **Name**. +5. In the **Provider** area, click **MongoDB**. +6. Click **Continue**. +7. Follow the on-screen instructions to fill in the fields as described later on this page. +8. Click **Save and Test**. import MongoDBFields from '/snippets/general-shared-text/mongodb-platform.mdx';