flask-mongorest icon indicating copy to clipboard operation
flask-mongorest copied to clipboard

DynamicDocument

Open houkk opened this issue 10 years ago • 2 comments

I am a novice, have some problems. For dynamically add fields, I use DynamicDocument in doucument.py.

  1. How to define the fields in Resource whe use DynamicDocument in doucument.py. I want to see all of the field in each data.
  2. How to update a piece of data , it's fields more than the fields defined in Class.

houkk avatar Sep 18 '15 08:09 houkk

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

KeironO avatar Jan 06 '17 18:01 KeironO

Looked through the example but didn't find a solution to this. Is there a way to get additional fields from a DynamicDocument?

arjunvenkatraman avatar Sep 29 '18 20:09 arjunvenkatraman