[PR #580] [MERGED] fix(checkpoint-mongodb): fix query filtering logic in list method #867

Closed
opened 2026-02-15 19:16:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/580
Author: @benjamincburns
Created: 10/11/2024
Status: Merged
Merged: 10/17/2024
Merged by: @jacoblee93

Base: mainHead: fix-mongodbsaver-filter-logic


📝 Commits (1)

  • 906fd84 fix(checkpoint-mongodb): fix query filtering logic in list method

📊 Changes

1 file changed (+10 additions, -6 deletions)

View changed files

📝 libs/checkpoint-mongodb/src/index.ts (+10 -6)

📄 Description

Found while working on #541. Much like in #578, prior to this change the way that the MongoDBSaver constructed its query filter arguments caused it to return no results if you passed { configurable: {} } as the config argument. This change fixes that, and makes it so that MongoDBSaver treats each property of the config object as an independent filter criteria. This offers a bit more flexibility when querying for persisted checkpoints via the list method.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/580 **Author:** [@benjamincburns](https://github.com/benjamincburns) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/17/2024 **Merged by:** [@jacoblee93](https://github.com/jacoblee93) **Base:** `main` ← **Head:** `fix-mongodbsaver-filter-logic` --- ### 📝 Commits (1) - [`906fd84`](https://github.com/langchain-ai/langgraphjs/commit/906fd845bce06bd18ddd3dbe5cd97cf99bc529da) fix(checkpoint-mongodb): fix query filtering logic in list method ### 📊 Changes **1 file changed** (+10 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `libs/checkpoint-mongodb/src/index.ts` (+10 -6) </details> ### 📄 Description Found while working on #541. Much like in #578, prior to this change the way that the `MongoDBSaver` constructed its query filter arguments caused it to return no results if you passed `{ configurable: {} }` as the config argument. This change fixes that, and makes it so that `MongoDBSaver` treats each property of the `config` object as an independent filter criteria. This offers a bit more flexibility when querying for persisted checkpoints via the `list` method. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:16:12 -05:00
yindo closed this issue 2026-02-15 19:16:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#867