Skip to content

Files

Latest commit

1066f5f · Mar 26, 2020

History

History

botbuilder-storage-mongodb

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