massivefermion / mungo

a mongodb driver for gleam
https://hex.pm/packages/mungo
Apache License 2.0
16 stars 1 forks source link

Cycling Dependencies #2

Closed needhamgary closed 6 months ago

needhamgary commented 6 months ago

As soon as I add the line "import mungo" in my project I get this error. Screenshot 2024-03-14 052257 Please fix asap so it's a usable package. I'm using the latest version of the package and Gleam at the moment.

massivefermion commented 6 months ago

I can't reproduce this. Could you remove your build directory and build the project again?

needhamgary commented 6 months ago

I can't reproduce this. Could you remove your build directory and build the project again?

I made a new project instead, it seems to be fixed. Must be a user error. Sorry for confusion

needhamgary commented 6 months ago

Does this package support "mongo+srv" connection strings currently? It's not allowing me to connect to my DB in the cloud.

massivefermion commented 6 months ago

Clusters and "mongo+srv" connection strings are not supported yet. The only thing you can do is use connection strings like mongodb://<username>:<password>@<host1>:<port1>,<host2>:<port2>,<host3>:<port3>/<dbName>?authSource=admin to connect to a replica set, but I haven't done enough due diligence on that either!

needhamgary commented 6 months ago

Okay thanks.