flask-mongorest
flask-mongorest copied to clipboard
DynamicDocument
I am a novice, have some problems. For dynamically add fields, I use DynamicDocument in doucument.py.
- How to define the fields in Resource whe use DynamicDocument in doucument.py. I want to see all of the field in each data.
- How to update a piece of data , it's fields more than the fields defined in Class.
Hey @houkk,
I too am a novice, but I may be able to help you here.
If you look at the example found in this repository, there is an example of how to do what you're asking in question 1.
Best of luck,
Keiron
Looked through the example but didn't find a solution to this. Is there a way to get additional fields from a DynamicDocument?