-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Mongoose and deno support #15824
Comments
@Uzlopak Are there any particular performance issues you'd like us to look into? |
@littledivy I ran into a couple of potential issues I'd like to highlight.
|
i think with the performance issues @Uzlopak means was my comment at Automattic/mongoose#12397 (comment) seeing that deno requires 5 minutes to execute tests while node only requires 3 minutes on the same system with the same code and same backend database |
@kt3k we need to fix this, can you help here?
Another case of "unstable API required", in this case
There are no intentional incompatibilities as far as I know - but you've mentioned one bug already in (1), I'm sure there might be others. |
1 should be now fixed in deno_std denoland/std#2676 |
@piscisaureus I did some more investigation about exactly what bits of unstable APIs Mongoose uses, either directly or indirectly via the MongoDB driver. Below is a list. I can confirm that if I comment out the following uses of unstable APIs, I can run the Mongoose script from this comment without
The MongoDB node driver uses
It was a bit tricky to figure this out because the MongoDB node driver was swallowing one of the |
@piscisaureus it looks like we still need |
@vkarpov15 we'll stabilize the required API in the next minor release. |
@Uzlopak it seems Mongoose has now support for Deno, can we close this issue? |
Sure. It was nice to watch the progress ;). |
Thanks! Great to see |
Sorry to post here, but it looks like it is not possible to connect to a Atlas cluster or a sharded cluster. The issue is logged at MongoDB's Jira and it is mentioned on the Deno main repo as well |
@eikooc it looks like this issue only affects Mongoose 6, works fine in Mongoose 7. We will ship Mongoose 6.11.0 with the fix. |
@vkarpov15 what is the correct way to connect to mongodb with SSL using mongoose ? The basic options does not seem to work The paths are correct and mongo set up correctly.(checked the ssl connection working fine using GUI(Studio3T)) Could you tell what might be the isssue? |
@kazeens please open a discussion / issue at mongoose if you have questions, this issue is not really about this and also read mongoose: SSL connections if you didnt already it looks like you are using a older mongoose version, maybe try to upgrade to mongoose 6 or 7 (mongoose 6 is the first version tested with deno too) PS: if you use atlas with ssl, you might wanna upgrade your mongoose version, because there were recent problems |
@hasezoey Thank you for the lead The mongoose version is used in my deno application
Maybe you have any kind of example or reference would, that would help me very much |
maybe try to upgrade to the currently latest version, which is |
Hi,
We are currently trying to support deno in the mongoose project.
Automattic/mongoose#12397 (comment)
We are actually successful with the deno support but it seems that we have some flaky/failing unit tests/performance issues. In node it works reliable.
Maybe you deno experts can give use some valuable feedback regarding the issue we are facing.
Thanks in advance
The text was updated successfully, but these errors were encountered: