Skip to content
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

Database.collection is not a function #245

Open
fereinaux opened this issue Mar 26, 2020 · 0 comments
Open

Database.collection is not a function #245

fereinaux opened this issue Mar 26, 2020 · 0 comments

Comments

@fereinaux
Copy link

Hello everyone, i don't know if that is the place to talk about it, because i'm surelly doing something wrong, but i didn't find a forum or something on stack overflow...

Here's the deal, i just got started developping with Mongo and i already have an AdonisJS app using mssql, so i followed this steps: https://forum.adonisjs.com/t/adonis-multiple-database/4596/7 to connect it to multiple databases, but i got stuck with this error and i think it is with my connection string to mongodb, but in a mongoose example it worked, so if anyone can help me :) :)

mongodb: {
client: 'mongodb',
connectionString: 'mongodb+srv://reinaux:r(mypassword)@cluster0-b1ikh.gcp.mongodb.net/test?retryWrites=true&w=majority'
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant