MongoDB on mobile device with AppStudio - possible?

03-29-2018 01:42 AM
by Anonymous User
Not applicable

Does anyone know of a way to get a MongoDB instance going on a device and accessible using AppStudio?

I want a local instance going that I can store and query JSON objects in.

Or, bonus points if anyone can tell me how to sync an AWS DynamoDB (a NoSql database) with a local database using just AppStudio.  

0 Kudos
3 Replies
New Contributor

I am using MongoDB Atlas and their API to access a Mongo DB Cluster from my AppStudio QML application. Then is just http requests from the application to API.

Link: API — MongoDB Atlas 

As for accessing a local instance of MongoDB, I'm not sure. My application needs are mobile, so working with the API is the key for me. I did look into the Mongo DB C++ driver at one point, with the thought that I could incorporate the MongoDB driver directly into my app with it's own class. 

Link: MongoDB C++ Driver Manual 

Link: Integrating QML and C++ | Qt QML 5.10 

0 Kudos
by Anonymous User
Not applicable

Thanks Brandon.

Yeah it's the local side that I'm more interested in. I'm looking at hooking up an AWS API point to retrieve and set some data in a DynamoDB instance, so similar to what you mention with MongoDBAtlas.



0 Kudos
Esri Contributor

Hi Paul,

For a cross platform solution, yeah, you're pretty much restricted to REST API end points.

For that, we generally recommend either XMLHttpRequest or, AppStudio's NetworkRequest which has support for downloading blobs to files.

If you know you're running on Windows, you can consider using Simba's ODBC Drivers with the SqlDatabase to connect:

// MongoDB ODBC sample

SqlDatabase {
    driverName: "QODBC"
    databaseName: "Driver=Simba MongoDB ODBC Driver;Server=[ServerInfo];

// DynamoDB ODBC sample

SqlDatabase {
    driverName: "QODBC"
    databaseName: "Driver=SimbaDynamoDB ODBC Driver;;Region=us-west-2;



0 Kudos