Capacitor plugin for MongoDB Mobile

Hey all,

Just wanted to let people know I’ve created a capacitor plugin for MongoDB mobile; it should have all the features of mongodb except for server-side javascript (map/reduce, $where queries) and things related to replicasets, etc, which aren’t really relevant to mobile use.

The plugin itself is at https://www.npmjs.com/package/@hamstudy/capacitor-mongodb-mobile and I’ve created a wrapper at https://www.npmjs.com/package/@hamstudy/mongodb-mobile-client which works with the plugin and gives you the same API (promise-based only, no callbacks) as the 3.x node driver.

I’d call this still beta quality as I haven’t had time to write tests for all of the APIs yet but I have written a simple project with tests which pass on both ios and android, so I think anything else not working should be fixable when I find out what the issues are and get some repro cases written for it.

The tests are in this project: https://github.com/HamStudy/capacitor-mongodb-mobile-testApp

1 Like