1.0.1 • Published 5 years ago

@botbuildercommunity/storage-mongodb v1.0.1

Weekly downloads
18
License
MIT
Repository
github
Last release
5 years ago

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