:question: Does anyone have an example of a MondoD...
# javascript
g
Does anyone have an example of a MondoDB integration with KotlinJs? I'm building a NodeJS app with KotlinJs and I'd like to talk to a MongoDB database. So far it looks like I have the following options: • monko - seems like what I want but I couldn't find any setup instructions/examples • KMongo - it's using the native Java driver for MongoDB so wouldn't work for KotlinJs, unless I'm missing something • MongoDB Node Driver - I'd have to create my own bindings for it from Javascript which I'm hoping to avoid • MongoDB / Realm - doesn't support the
js
target yet unfortunately • ...anything else?
👍 2
@Big Chungus Do you have any example usage of monko or perhaps setup instructions for integrating it into another project? 🙂
b
Monko is not ready for public use and is currently on hold. The only thing that works reliably is its runCommand api (which can be used to execute all other mongodb commands if needed). My recommendation is to simply use nodejs mongodb driver and write your own external declarations for the apis you need.
You can copy some of them from monko though, so it's not all from scratch
g
Thanks, will give this a go 👍
m
You could take a look at Katerbase which we maintain and also use in our own projects. One is the open source project CampusQR
b
Op needs a js (not jvm) option
m
My bad, didn’t see that 👍🏼