Monthly Archives

MongoEngine – Javascript

QuerySet object of MongoEngine has exec_js() method that allows execution of a Javascript function on MongoDB server. This function...

MongoEngine – Javascript

QuerySet object of MongoEngine has exec_js() method that allows execution of a Javascript function on MongoDB server. This function...

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

An indexed collection results in faster processing of queries. By default, every collection is automatically indexed on _id field....

MongoEngine – Indexes

An indexed collection results in faster processing of queries. By default, every collection is automatically indexed on _id field....

MongoEngine – Advanced Queries

In order to get more efficiency in retrieving a subset of fields in a document, use only() method of...

MongoEngine – Advanced Queries

In order to get more efficiency in retrieving a subset of fields in a document, use only() method 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 – Querying Database

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

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