JSPM

resolve-storage-mongo

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

An adapter reSolve uses to store events in 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 resolve-es adapter for storing events using MongoDB.

Available Parameters

  • url - a MongoDB connection string. Refer to Connection String URI Format for more information.
  • collectionName - a name of a collection storing events.

Usage

import createAdapter from 'resolve-storage-mongo'

const adapter = createAdapter({
  url: 'mongodb://localhost:27017/CustomDatabaseName',
  collectionName: 'Events'
})

Analytics