+
MongoDB Configuration
+
+ Configure MongoDB connection and collection settings in the next step.
+
+
+ )}
);
};
diff --git a/web/src/pages/data-source/edit/[id].tsx b/web/src/pages/data-source/edit/[id].tsx
index 3fb784ae..9fde0085 100644
--- a/web/src/pages/data-source/edit/[id].tsx
+++ b/web/src/pages/data-source/edit/[id].tsx
@@ -21,13 +21,14 @@ import Confluence from '../new/confluence';
import GitHub from '../new/github';
import HugoSite from '../new/hugo_site';
import LocalFS from '../new/local_fs';
-import { GithubConfig, NetworkDriveConfig, RdbmsConfig } from '../new/models';
+import { GithubConfig, NetworkDriveConfig, RdbmsConfig, MongoDBConfig } from '../new/models';
import NetworkDrive from '../new/network_drive';
import Notion from '../new/notion';
import Rdbms from '../new/rdbms';
import Rss from '../new/rss';
import S3 from '../new/s3';
import Yuque from '../new/yuque';
+import MongoDB from '../new/mongodb';
// eslint-disable-next-line complexity
export function Component() {
@@ -256,6 +257,7 @@ export function Component() {
break;
case Types.GoogleDrive:
break;
+
case Types.S3:
if (datasource.connector?.config) {
datasource.config = {
@@ -297,6 +299,12 @@ export function Component() {
}
break;
}
+ case Types.MongoDB: {
+ if (datasource.connector?.config) {
+ datasource.config = MongoDBConfig(datasource.connector);
+ }
+ break;
+ }
case Types.Postgresql:
case Types.Mysql: {
if (datasource.connector?.config) {
@@ -365,6 +373,7 @@ export function Component() {
{type === Types.S3 &&