Lumen Ai connection to mongoDB

Dear All,

Is it possible lumen AI connect with non relation database like mongoDB.

If currently not yet support how the workaround lumen AI interact with that.

Thanks

1 Like

We have not implemented it yet, and unsure of the workaround. However we’ll take a look soon!

1 Like

One potential workaround:

source = DuckDBSource(
    uri=':memory:',
    initializers=[
        "INSTALL mongodb;",
        "LOAD mongodb;",
    ],
    tables={
        'my_collection': "SELECT * FROM mongodb_scan('mongodb://localhost:27017', 'mydb', 'mycollection')"
    }
)

Thanks @ahuang11 , how we implement this code, how we modify the default page/apps of lumen and also setting own brand too?

Kindly please advice

Hi @ahuang11 please ignore my question, I just read again the documentation and will try it.
Thank you