@botbuildercommunity/storage-mongodb
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Bot Builder MongoDB Storage

This is a simple storage adapter for storing BotState in MongoDB. To use:

import { MongoDbStorage } from '@botbuildercommunity/storage-mongodb';

const mongoDbStorage = new MongoDbStorage('mongodb://localhost:27017/', 'testDatabase', 'testCollection');

const conversationState = new ConversationState(mongoDbStorage);
const userState = new UserState(mongoDbStorage);

See here for additional context

Installation

npm install @botbuildercommunity/storage-mongodb --save

Package Sidebar

Install

npm i @botbuildercommunity/storage-mongodb

Weekly Downloads

7

Version

1.0.1

License

MIT

Unpacked Size

17.2 kB

Total Files

13

Last publish

Collaborators

  • jamesemann
  • cloudguy_pro
  • imick