🏎
Drivers
🏎
Drivers
🚀 Get started
Explore
Naas Website
Features
⚙️ Tools
Airtable
Bubble
Canny
Cityfalcon
Email builder
FTP
Google Sheets
Healthchecks
Hubspot
IFTTT
Integromat
Jupyter API
Linear regression
MongoDB
Mailbox
Markdown
News API
Notion
PDF
Plotly
Qonto
Sentiment analysis
Slack
Teams
Toucan Toco
Thinkific
Yahoo Finance
Zapier
MORE INFO
💃 Installed librairies
👍 Updates
🖥️ Use on your computer
Powered by GitBook

MongoDB

Fetch data from a mongodb and get a dataframe
The most popular database for modern apps
We're the creators of MongoDB, the most popular database for modern apps, and MongoDB Atlas, the global cloud database on AWS, Azure, and GCP. Easily organize, use, and enrich data — in real time, anywhere.
www.mongodb.com
Website

Connect

You must Connect before any other methods

user = "my user"
passwd = "my passwd"
host = "url"
port = 9090
ftp = naas_drivers.mongo.connect(host, port, user, passwd)

Get data

collection_name = "col"
db_name = "db_name"
naas_drivers.mongo.get(collection_name, db_name)

Send data

collection_name = "col"
db_name = "db_name"
data = # a dataframe
naas_drivers.mongo.send(data, collection_name, db_name)

Official documentation

Welcome to the MongoDB Documentation — MongoDB Documentation
docs.mongodb.com
⚙️ Tools - Previous
Linear regression
Next - ⚙️ Tools
Mailbox
Last updated 4 months ago
Contents
Connect
Get data
Send data
Official documentation