Top "Mongoengine" questions

MongoEngine is a Document-Object Mapper (think ORM, but for document databases) for working with MongoDB from Python.

Updating a list of embedded documents in mongoengine

I'm struggling with mongoengine syntax. I have the following models... class Post(EmbeddedDocument): uid = StringField(required=True) text = StringField(required=…

python mongodb pymongo mongoengine
Mongoengine : How to update specific fields of an existing document?

I have an existing mongo document which has been exposed over a REST API. The API request will contain certain …

flask mongoengine marshmallow
Converting mongoengine objects to JSON

i tried to fetch data from mongodb using mongoengine with flask. query is work perfect the problem is when i …

json mongodb python-3.x flask mongoengine
Trouble querying ListField with mongoengine

I'm using mongoengine, and I've got the following situation, My model: class Item(Document): ... tags = ListField(StringField(max_length=30)) The …

python django mongodb mongoengine
MongoDB: Removing a field from ALL subdocuments in an array field

I have thousands of documents in this format: { "_id" : ObjectId("51e98d196b01c2085c72d731"), "messages" : [ { "_id" : ObjectId("520167056b01…

mongodb pymongo mongoengine
mongoengine - Ignore extra fields for schema validation

I am trying to query my database. Some records currently have extra fields that are not included in my model …

mongodb database-schema mongoengine
profiling and finding bottleneck of a flask application --- current respond time is 30 second

My Flask application suddenly become very very slow for the past month and I have no idea what changes has …

python flask profiling mongoengine
MongoEngine - Query - How to check if a ListField is empty or not set

how do I check if an ListField() attribute of a Mongo Class is not set or empty? Thanks!

mongodb mongoengine listfield
Query Embedded Document List in MongoEngine

I need query a list with all embedded documents in mongoengine. Here is my schema: class Variant(EmbeddedDocument): name = StringField(…

python mongodb mongodb-query mongoengine
Python, MongoDB, Mongoengine - TypeError: string indices must be integers, not str

I am building a Django app that downloads some data via the LinkedIn api and stores it to MongoDB. I …

python django mongodb mongoengine django-tests