QuerySet object of MongoEngine has exec_js() method that allows execution of a Javascript function on MongoDB server. This function... 04 Mar MongoEngine – Javascript | Mongo Engine | 0 QuerySet object of MongoEngine has exec_js() method that allows execution of a Javascript function on MongoDB server. This function...
The QuerySet object possesses following useful methods for querying the database. first() First document satisfying the query is returned.... 04 Mar MongoEngine – QuerySet Methods | Mongo Engine | 0 The QuerySet object possesses following useful methods for querying the database. first() First document satisfying the query is returned....
An indexed collection results in faster processing of queries. By default, every collection is automatically indexed on _id field.... 04 Mar MongoEngine – Indexes | Mongo Engine | 0 An indexed collection results in faster processing of queries. By default, every collection is automatically indexed on _id field....
In order to get more efficiency in retrieving a subset of fields in a document, use only() method of... 04 Mar MongoEngine – Advanced Queries | Mongo Engine | 0 In order to get more efficiency in retrieving a subset of fields in a document, use only() method of...
The connect() function returns a MongoClient object. Using list_database_names() method available to this object, we can retrieve number of... 04 Mar MongoEngine – Querying Database | Mongo Engine | 0 The connect() function returns a MongoClient object. Using list_database_names() method available to this object, we can retrieve number of...
The objects attribute is a QuerySet manager. It creates and returns a QuerySet when accessed. A query can be... 04 Mar MongoEngine – Filters | Mongo Engine | 0 The objects attribute is a QuerySet manager. It creates and returns a QuerySet when accessed. A query can be...
In addition to = operator to check equality, the following logical operators are defined in MongoEngine. ne not equal... 04 Mar MongoEngine – Query Operators | Mongo Engine | 0 In addition to = operator to check equality, the following logical operators are defined in MongoEngine. ne not equal...
One of the advantages of MongoDB database is that it supports dynamic schema. To create a class that supports... 04 Mar MongoEngine – Dynamic Schema | Mongo Engine | 0 One of the advantages of MongoDB database is that it supports dynamic schema. To create a class that supports...
A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is... 04 Mar MongoEngine – Fields | Mongo Engine | 0 A MongoEngine document class has one or more attributes. Each attribute is an object of Field class. BaseField is...
We have already used save() method of Document class to add a document in the collection. The save() method... 04 Mar MongoEngine – Add/Delete Document | Mongo Engine | 0 We have already used save() method of Document class to add a document in the collection. The save() method...