We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33c8e8 commit e5ced9bCopy full SHA for e5ced9b
libs/langgraph-checkpoint-mongodb/langgraph/checkpoint/mongodb/aio.py
@@ -3,6 +3,7 @@
3
import asyncio
4
import builtins
5
import sys
6
+import warnings
7
from collections.abc import AsyncIterator, Iterator, Sequence
8
from contextlib import asynccontextmanager
9
from datetime import datetime
@@ -84,6 +85,12 @@ def __init__(
84
85
ttl: Optional[int] = None,
86
**kwargs: Any,
87
) -> None:
88
+ warnings.warn(
89
+ f"{self.__class__.__name__} is deprecated and will be removed in a future release. "
90
+ "Please use the async methods of MongoDBSaver instead.",
91
+ DeprecationWarning,
92
+ stacklevel=2,
93
+ )
94
super().__init__()
95
self.client = client
96
self.db = self.client[db_name]
0 commit comments