-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(mongodb): mongodb storage mget must return undefined when key not exist #6445
fix(mongodb): mongodb storage mget must return undefined when key not exist #6445
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
); | ||
|
||
return keys.map((key) => { | ||
const prefixedKey = this._getPrefixedKey(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just map over prefixedKeys
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agree, done.
const prefixedKey = this._getPrefixedKey(key); | ||
const value = valueMap.get(prefixedKey); | ||
|
||
if (!value || !("value" in value)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
valueMap
contains tuples now, so this would never be true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, the second part of the condition was removed.
Sorry for the delay! A few questions |
Someone is attempting to deploy a commit to the LangChain Team on Vercel. A member of the Team first needs to authorize it. |
not a problem. review updated. please have a look. |
@jacoblee93 can you please merge it? |
Sorry about the delay, will ship shortly! |
… exist (langchain-ai#6445) Co-authored-by: Roman Tyshyk <roman.tyshyk@711media.de> Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
Fixes #6441 (issue)
mget
method inBaseStore
must return values or undefined in the same order as the input keys.PR is fixing MongoDB storage implementation.