Immutable solution version
Backend: EKS + DocDB Elastic yields Mongoose distinct undefined error
Complete solution
Hey there.
[maintainer akhilmhdh]: Hey there. 1. I guess both will work in mongoose await, its just error returned will be more detail for the exec one. Thus that's not an issue the call is getting executed. 2. So i guess for someversions of mongo the distinct would be undefined. I guess we need to do an undefined check . so that it doesn't fail. This is my inference. @maidul98
Context: Issue infisical/infisical#796 (closed, 14 comments): ### Describe the bug Hey! I'm executing a nuanced PoC for Infisical in EKS (AWS-hosted Kubernetes), and wanted to leverage a DocumentDB elastic cluster in lieu of an in-cluster mongo pod with persistence, to try and centralize DB management. The latest DocDB cluster specification is highly compatible with MongoDB 3, 4, and 5, so I figure it should be okay. Maybe. This is in reference to the v0.23.3 Docker images from yesterday as-of-writing. In the backend specifically, after wrestling with giving the app the correct MONGO_URL to get Mongoose to connect to the DocDB cluster succ
Evidence
Source: Issue infisical/infisical#796 (closed, 14 comments): ### Describe the bug Hey! I'm executing a nuanced PoC for Infisical in EKS (AWS-hosted Kubernetes), and wanted to leverage a DocumentDB elastic cluster in lieu of an in-cluster mongo pod with persistence, to try and centralize DB management. The latest DocDB cluster specification is highly compatible with MongoDB 3, 4, and 5, so I figure it should be okay. Maybe. This is in reference to the v0.23.3 Docker images from yesterday as-of-writing. In the backend specifically, after wrestling with giving the app the correct MONGO_URL to get Mongoose to connect to the DocDB cluster succ
Verified resolution: [maintainer akhilmhdh]: Hey there. 1. I guess both will work in mongoose await, its just error returned will be more detail for the exec one. Thus that's not an issue the call is getting executed. 2. So i guess for someversions of mongo the distinct would be undefined. I guess we need to do an undefined check . so that it doesn't fail. This is my inference. @maidul98
Source URL: https://github.com/Infisical/infisical/issues/796
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_ITUKfbci-80aJLq9J593Pw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Backend: EKS + DocDB Elastic yields Mongoose distinct undefined error <span>— Vectle</span></a>