0.1.0 • Published 15 days ago
@azimutt/connector-mongodb v0.1.0
MongoDB connector
This library allows to connect to MongoDB, extract its schema and more...
It browses all databases and collections, fetch a sample of documents and then infer a schema from them.
This library is made by Azimutt to allow people to explore their MongoDB database. It's accessible through the Desktop app (soon), the CLI or even the website using the gateway server.
Feel free to use it and even submit PR to improve it:
- improve MongoDB queries (look at
getSchema
function) - improve schema inference
Set up a sample MongoDB database
- Go on https://www.mongodb.com and click on "Try free" to create your Atlas account (MongoDB in the cloud)
- Follow the onboarding to create a database user and whitelist your IP, if you missed them, go on:
- In
Data Services > Database Access
: Create database user - In
Data Services > Network Access
: Allow your IP address
- In
- Get your connection url with the "Connect" button, ex:
mongodb+srv://user:password@cluster2.gu2a9mr.mongodb.net
- Load sample dataset (as suggested in the UI)
Publish
- update
package.json
version - update lib versions (
npm run update
+ manual) & runnpm install
- test with
npm run dry-publish
and checkazimutt-connector-mongodb-x.y.z.tgz
content - launch
npm publish --access public
View it on npm.