@botbuildercommunity/storage-mongodb

MongoDB storage option for the Microsoft Bot Framework

Usage no npm install needed!

<script type="module">
  import botbuildercommunityStorageMongodb from 'https://cdn.skypack.dev/@botbuildercommunity/storage-mongodb';
</script>

README

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