Create and Remove MongoDB user to database

Create an user by first clicking on the terminal button were it says “MONGOSH” in the bottom left corner of the MongoDB compass program. Then write use <yourdbname> to get into your database. Then run:

db.createUser(
  {
    user: "mycollectionUser",
    pwd: "examplepass123",
    roles: [
       { role: "readWrite", db: "myDbName" }
    ]
  }
)

To remove an user:

db.dropUser("mycollectionUser")

Xcode 14.2 not starting

I had a problem where Xcode not opening a project or starting at all. Sometimes it just froze. The solution I found out working was cloing the repository to another folder that is not desktop or document and it works. I also disabled iCloud, updated the Mac, cleared some cache folders, but in the end I think where the repo is opening from is the most important. Also, I removed the git account and added it again too in Xcode.