JSPM

resolve-storage-mongo

0.0.31
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q80090F
  • License MIT

This package serves as a driver for resolve-storage to store events using MongoDB.

Package Exports

  • resolve-storage-mongo

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 (resolve-storage-mongo) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

resolve-storage-mongo npm version

This package is a driver for resolve-es to store events using MongoDB.

Available Parameters

  • url - connection string to MongoDB. For more information, refer to Connection String URI Format.
  • collection - name of a collection storing events.

Usage

import createDriver from 'resolve-storage-mongo';

const driver = createDriver({
    url: 'mongodb://localhost:27015',
    collection: 'events'
});