-
Notifications
You must be signed in to change notification settings - Fork 53
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
Error when using nsql cache getting multiple keys in Model.get. #187
Comments
Hello, Also, could you share the full stack trace of the errors? |
Okay, I got it to reproduce. This error occurs very specifically when: Here is the entire trace: |
From further looking into it, it seems that cache.db.getEntityFromKey(entity) doesn't work when the entity is type of array which is what happens in this situation. I hope this helps you find the problem. |
I am currently using this hack as a workaround to this issue. I disable cached when there is only one id in the array, and re-enable it when there is more than one. |
Hi, |
Hey, just checking for any updates on this issue. Thank you. |
Hi, sorry for the delay. I am very busy until next week. Hopefully, I should be able to look at this at the end of next week. Thanks! |
That would be amazing! Thank you so much. I know you are very busy. |
Hi! Cheers 👍 |
This happens all of a sudden when nsql cache is enabled. When i do a Model.get() for multiple ids, it will work and then all of a sudden this error comes up.
Error: Key cannot be undefined. at keyToString (~/node_modules/nsql-cache-datastore/lib/index.js:96:23)
The text was updated successfully, but these errors were encountered: