skip to Main Content

best mongodb schema

I have a mongodb schema. I wonder if there is a better approach for this schema. question: { type: String, required: true, }, image1: { type: String, required: true, }, image2: { type: String, required: true, }, imageOneVotes: { type:…

VIEW QUESTION

How to connect to a MongoDb of a docker container

I've created the following docker-compose.yml: version: "3" services: mongo: image: mongo:latest environment: MONGO_INITDB_ROOT_USERNAME: admin MONGO_INITDB_ROOT_PASSWORD: admin ports: - '27017:27017' I then start my containers: docker-compose up then I try to connect into MongoDb Compass(also tried through c# code), with the…

VIEW QUESTION
Back To Top
Search