Basic function used by CEDARS to connect to MongoDB instance. Wraps mongo() from mongolite.
1 | mongo_connect(uri_fun, user, password, host, port, database, mongo_collection)
|
uri_fun |
Uniform resource identifier (URI) string generating function for MongoDB credentials. |
user |
MongoDB user name. |
password |
MongoDB user password. |
host |
MongoDB host server. |
port |
MongoDB port. |
database |
MongoDB database name. |
mongo_collection |
MongoDB collection; if NA, will connect to DB itself. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.