π
π
π
π
Shypyard Documentation
Searchβ¦
π
π
π
π
Shypyard Documentation
βWhat is Shypyard?
π
Need bespoke integration?
Resources
Getting started
Task library
Core concepts
Task triggers
Task code
Task runs
App
Platform services
Observability (logging)
Shypyard SDK
auths
Shypyard API
Email SMTP
Shopify
AWS
SFTP
Mongodb
API Clients
Integration to apps
List of supported integrations
Interacting with Shopify
Techniques
Limitations
Changelog
Privacy Policy
Powered By
GitBook
Mongodb
libs.mongodb.get().connect()
Requires the MongoDB integration to be set up
Returns an instance of
mongodb
service instance.
1
// get connection
2
const
client
=
await
libs
.
mongodb
.
get
().
connect
();
3
β
4
// get collection
5
const
db
=
client
.
db
(
'db_name'
);
6
const
collection
=
db
.
collection
(
'collection_name'
);
7
β
8
// do what you want...
9
β
10
// to close connection
11
await
client
.
close
();
Copied!
Previous
SFTP
Next
API Clients
Last modified
1yr ago
Copy link