@webiny/handler-db
TypeScript icon, indicating that this package has built-in type declarations

5.39.5 • Public • Published

@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

/@webiny/handler-db/

    Package Sidebar

    Install

    npm i @webiny/handler-db

    Weekly Downloads

    818

    Version

    5.39.5

    License

    MIT

    Unpacked Size

    4.44 kB

    Total Files

    9

    Last publish

    Collaborators

    • webiny