Install and import from the "@langchain/mongodb" integration package instead.

interface MongoDBChatMessageHistoryInput {
    collection: Collection<Document>;
    sessionId: string;
}

Properties

collection: Collection<Document>
sessionId: string