mongo.nvim
mongo.nvim copied to clipboard
Atlas DB Support?
Any possibility to connect to an atlas MongoDB?
https://cloud.mongodb.com/
The mongosh command would be: mongosh "mongodb+srv://cluster0.*******.mongodb.net/myFirstDatabase" --apiVersion 1 --username test"
If I try any variation of this I just get
Error executing Lua callback: Vim:E474: Unidentified byte: MongoshInvalidInputError: [COMMON-10001] Invalid URI: "cluster0.*******.mongodb.net/sample_training"
I believe this relates to #1 as well: I'm considering changing how :Mongoconnect works: right now it is confusing and the options/combinations are not really documented well or very predictable. Just this morning, I was hung up using it for a little bit (and I wrote it!). I'm considering just changing it to pass its argument unaltered to mongosh.
The drawback is that this change would be backwards-incompatable. Thoughts? @DM1NIK
Perhaps it would be useful to have a more direct version of :Mongoconnect called :Directmongoconnect or have a tag like -D or --direct that does the same.
This way you wouldn't lose the backward compatibility.
Personally, I will not use this plugin for very long (at least right now), it is primarily for a specific module at my university which uses MongoDB, so I wouldn't be affected if there wouldn't any backward compatibility.