Windows MongoDB – Installed Compass but can’t find Compass within system

For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut ‘MongoDB Compass’ here: C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MongoDB Inc and then in the properties of it the actual location seems to be C:\Users\<username>\AppData\Local\MongoDBCompass\MongoDBCompass.exe

MongoError: This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string

As suggested in accepted answer, you need to have your local server to be run as a replica set to be able to perform transactions, as opposed to standalone server. However, in addition to the proposed solution, you can easily convert your Standalone local db to a Replica Set without using any third-party tool, by … Read more

Docker mongodb config file

I’m using the mongodb 3.4 official docker image. Since the mongod doesn’t read a config file by default, this is how I start the mongod service: docker run -d –name mongodb-test -p 37017:27017 \ -v /home/sa/data/mongod.conf:/etc/mongod.conf \ -v /home/sa/data/db:/data/db mongo –config /etc/mongod.conf removing -d will show you the initialization of the container Using a docker-compose.yml: … Read more

Facebook-passport with JWT

The best solution I found for that problem would be to redirect to the expected page with a cookie which holds the JWT. Using res.json would only send a json response and would not redirect. That’s why the other suggested answer here would not solve the problem I encountered. So my solution would be: app.get(‘/auth/facebook/callback’, … Read more

Update Server Component after data has been changed by Client Component in Next.js

The only way to update a Server Component is to reload the page. As it’s sent to the browser as static HTML without any JavaScript attached to it to have interactivity. To reload the page while keeping client side states, you could use router.refresh(), where router is the returned value by useRouter(). Here is an … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)