Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 675 Bytes

File metadata and controls

20 lines (13 loc) · 675 Bytes

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