Author Archives

MongoEngine – QuerySet Methods

The QuerySet object possesses following useful methods for querying the database. first() First document satisfying the query is returned....

MongoEngine – QuerySet Methods

The QuerySet object possesses following useful methods for querying the database. first() First document satisfying the query is returned....

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 – 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 – Querying Database

The connect() function returns a MongoClient object. Using list_database_names() method available to this object, we can retrieve number of...

MongoEngine – Querying Database

The connect() function returns a MongoClient object. Using list_database_names() method available to this object, we can retrieve number of...

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 – 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...

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...