Showing posts with the label flask-mongoengine

[FIXED] How can I find if any user with given ID exists on an array of arrays using flask and mongoengine?

Issue I have a collection with multiple Course documents. On it, i have an array of course_users li…

[FIXED] Finding the next and previous documents in a MongoEngine query

Issue I would like to get the next and previous documents in a MongoEngine query which is ordered b…

[FIXED] MongoClient opened before fork. Create MongoClient only Flask

Issue I am running Flask with uwsgi threaded mode with processes 4 and using pymongo also flask_mon…

[FIXED] Query nested documents inside an object in mongodb

Issue I have developed a Python-Flask app using Mongoengine and mongodb as my database. I want to …

[FIXED] what is correct way to define Many2Many, Many2One in mongoengine

Issue I am creating a data model for my new project where I have to use Many2Many, Many2One, One2Ma…

[FIXED] MongoEngine - Call function only when document is being created or specific field being set?

Issue I'm not sure what is the best/pythonic way of having a User document that automatically h…

[FIXED] Accessing the properties of the mongoengine instance in a Flask app

Issue I've registered the flask-mongoengine extension in my Flask app and initialized it. I …

[FIXED] MongoEngine: storing EmbeddedDocument in DictField

Issue I'm modelling a MongoDB database in MongoEngine for a web project. I want to store the d…

[FIXED] MongoEngine: Operator "__contains" does not work with non-english letters or words

Issue When trying to use Q(nickname__contains="") from mongoengine.queryset.visitor, mong…

[FIXED] How can i query data and filter by date with flask-mongodb

Issue When i use flask-mongoengin in flask, i used db.Document to define my class as below, but whe…

[FIXED] How to connect cosmosDB using flask-mongoengine

Issue I want to access my azure cosmosDB database using flask-mongoengine library. I've tried…

[FIXED] How do I update if exist and insert if not using mongoengine (python)

Issue It is really absurd how mongoengine has such arcane documentation. I am trying to do a simple…

[FIXED] AttributeError: 'BaseQuerySet' object has no attribute 'is_authenticated'

Issue I'm using flask-login and MongoDB as my database to store user profiles. When checking …

[FIXED] mongoengine - RuntimeError: generator raised StopIteration

Issue I have flask-mongoengine application and I have a seriuos problem when I want to iterate over…

[FIXED] Flask-mongoengine: Unable to import MongoEngine From flask-mongoengine

Issue I must be missing something but I look around and couldn't find reference to this issue. …

[FIXED] How to handle ReferenceField migration with flask mongoengine?

Issue I've implemented a simple flask application with mongodb that now needs some upgrades. …

[FIXED] How can I get a list of collections in a database using MongoEngine?

Issue I'd like to know what call I can make from a python MongoEngine instance to get a list of…

[FIXED] Manage Multiple Params with GET Flask restful MongoEngine Clean Code

Issue I'm creating an API with flask_restful, and I want to search for example with two paramet…

[FIXED] How to retrieve a pdf/image from reference field using MongoEngine?

Issue I finding some difficulty in retrieving a pdf/image file that is referenced by a class using …

[FIXED] Change Document 'objects' property to 'query'

Issue I'm trying to change the document 'objects' property to 'query'. It's…