You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Callback function for managing the closing of the MongoDB client.
55
-
* This could be useful when `client` is provided as a function returning MongoClient | Promise<MongoClient>.
55
+
* This could be useful when `client` is provided as a function returning MongoClient.
56
56
* It allows for more customized management of database connections,
57
57
* addressing persistence, container reuse, and connection closure issues.
58
58
*/
@@ -115,7 +115,7 @@ export function MongoDBAdapter(
115
115
* - A promise that resolves to a connected `MongoClient` (not recommended).
116
116
* - A function, to handle more complex and custom connection strategies.
117
117
*
118
-
* Using a function that returns `MongoClient | Promise<MongoClient>`, combined with `options.onClose`, can be useful when you want a more advanced and customized connection strategy to address challenges related to persistence, container reuse, and connection closure.
118
+
* Using a function combined with `options.onClose`, can be useful when you want a more advanced and customized connection strategy to address challenges related to persistence, container reuse, and connection closure.
0 commit comments