hidjou / classsed-graphql-mern-apollo

408 stars 255 forks source link

Making what you instructed in the video but still empty getPosts #34

Open mohamedmehdigara opened 3 years ago

mohamedmehdigara commented 3 years ago

@hidjou Salam. Capture I made the changes in config.js with a name of a Mongodb cluster, its password and changed the name of the database to its correct name like you instructed but still getting an empty getPosts like this:

SudhanshuBlaze commented 2 years ago

Did you find a fix?

gitbit-hash commented 2 years ago

I had the same issue, I fixed it by providing the DB name in the connection string. MONGODB: 'mongodb+srv://YourUsername:YourPassword@cluster0.xbrt2.mongodb.net/YourDBName?retryWrites=true&w=majority'