Tag: MongoDb

  • Setup MongoDB on an Azure VM

    Hi everyone, I’m currently using a small linux vm to host a MongoDB instance on Azure. These are the steps I followed: ## MongoDB ### Install https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ 1. Import the public key: `wget -qO – https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -` 2. Create a list file: `echo “deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.4 multiverse” |…

  • Element does not match nay field or property of Class – MongoDb and .net core

    Hey everyone, I ran into the following error today while searching MongoDb for an object: Element ‘Tags’ does not match any field or property of class X. The issue was that there were extra fields on the returned document that were not specified on the mapping target object. A bit of Googling revealed that there…

Create a website or blog at WordPress.com