Package Exports
- @webiny/handler-db
- @webiny/handler-db/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@webiny/handler-db) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@webiny/handler-db-nedb
This Webiny API plugin provides a db driver for Nedb. It sets an instance of the Nedb driver to context.db.driver
.
How to use
Add the plugin to the plugins
section of your service:
myService:
component: "@webiny/serverless-apollo-service"
inputs:
# ... other inputs ...
plugins:
# ... other plugins ...
- factory: "@webiny/handler-db-nedb"
options:
database:
server: NEDB_SERVER_URI
name: NEDB_DATABASE_NAME