Webiny API plugin that provides a Commodo driver for MongoDB.
npm install @webiny/api-plugin-commodo-mongodbThis Webiny API plugin provides a Commodo driver for MongoDB. It sets an instance of the MongoDB driver to context.commodo.driver.
plugins section of your service:``yaml``
myService:
component: "@webiny/serverless-apollo-service"
inputs:
# ... other inputs ...
plugins:
# ... other plugins ...
- factory: "@webiny/api-plugin-commodo-mongodb"
options:
database:
server: MONGODB_SERVER_URI
name: MONGODB_DATABASE_NAME