Naas Documentation
Naas.ai
GitHub
Slack Community
What's new?
Searchβ¦
Welcome to Naas
π
Templates
π
Low-code features
π
Low-code drivers
π¬
AI/Machine Learning
Airtable
Awesome-notebooks
Bubble
Canny
CityFalcon
FTP
HTML builder
Google Sheets
Healthchecks
Hubspot
IFTTT
Integromat
Mailbox
Jupyter
LinkedIn
Markdown
Microsoft Teams
MongoDB
NewsAPI
Notion
PDF
Plotly
Slack
Thinkific
Toucan
Qonto
Yahoo
Zapier
π
Community
Essentials
Advanced
Best Practices
FAQ
β‘
Naas manager
π
Security
Powered By
GitBook
MongoDB
Fetch data from a mongodb and get a dataframe
MongoDB: the application data platform
MongoDB
Website
Connect
You must Connect before any other methods
1
user
=
"my user"
2
passwd
=
"my passwd"
3
host
=
"url"
4
port
=
9090
5
ftp
=
naas_drivers
.
mongo
.
connect
(
host
,
port
,
user
,
passwd
)
Copied!
Get data
1
collection_name
=
"col"
2
db_name
=
"db_name"
3
naas_drivers
.
mongo
.
get
(
collection_name
,
db_name
)
Copied!
Send data
1
collection_name
=
"col"
2
db_name
=
"db_name"
3
data
=
# a dataframe
4
naas_drivers
.
mongo
.
send
(
data
,
collection_name
,
db_name
)
Copied!
Official documentation
Welcome to the MongoDB Documentation
mongodb
Previous
Microsoft Teams
Next
NewsAPI
Copy link
Edit on GitHub
Contents
Connect
Get data
Send data
Official documentation