Category Archives

MongoEngine – Filters

The objects attribute is a QuerySet manager. It creates and returns a QuerySet when accessed. A query can be...

MongoEngine – Filters

The objects attribute is a QuerySet manager. It creates and returns a QuerySet when accessed. A query can be...

MongoEngine – Query Operators

In addition to = operator to check equality, the following logical operators are defined in MongoEngine. ne not equal...

MongoEngine – Query Operators

In addition to = operator to check equality, the following logical operators are defined in MongoEngine. ne not equal...

MongoEngine – Dynamic Schema

One of the advantages of MongoDB database is that it supports dynamic schema. To create a class that supports...

MongoEngine – Dynamic Schema

One of the advantages of MongoDB database is that it supports dynamic schema. To create a class that supports...

MongoEngine – Fields

A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is...

MongoEngine – Fields

A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is...

MongoEngine – Add/Delete Document

We have already used save() method of Document class to add a document in the collection. The save() method...

MongoEngine – Add/Delete Document

We have already used save() method of Document class to add a document in the collection. The save() method...

MongoEngine – Installation

To use MongoEngine, you need to have already installed MongoDB and MongoDB server should be running as described earlier....

MongoEngine – Installation

To use MongoEngine, you need to have already installed MongoDB and MongoDB server should be running as described earlier....

Connecting to MongoDB Database

As mentioned earlier, you should first start MongoDB server using mongod command. MongoEngine provides connect() function to connect to...

Connecting to MongoDB Database

As mentioned earlier, you should first start MongoDB server using mongod command. MongoEngine provides connect() function to connect to...

MongoEngine – Document Class

MongoEngine is termed as ODM (Object Document Mapper). MongoEngine defines a Document class. This is a base class whose...

MongoEngine – Document Class

MongoEngine is termed as ODM (Object Document Mapper). MongoEngine defines a Document class. This is a base class whose...

MongoEngine – MongoDB Compass

MongoDB has also developed a GUI tool for handling MongoDB databases. It is called MongoDB Compass. It is a...

MongoEngine – MongoDB Compass

MongoDB has also developed a GUI tool for handling MongoDB databases. It is called MongoDB Compass. It is a...

MongoEngine – Object Document Mapper

MongoDB is a document based database. Each document is a JSON like representation of fields and values. A document...

MongoEngine – Object Document Mapper

MongoDB is a document based database. Each document is a JSON like representation of fields and values. A document...