JSPM

@webiny/handler-db

6.0.0-beta.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3176
  • Score
    100M100P100Q107513F
  • License MIT

Webiny API plugin that provides a db driver for DynamoDB.

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