pymongo as_class and son manipulation
Frage
I have a very special question about son manipulation and the as_class
parameter by find
.
After I add the AutoReference manipulator I get a SON object from the curser and not a object from the class which I defined in the as_class
parameter.
Is there someone with the same problem, is this a bug in pymongo or I am only stupid?
Best regardes
Lösung
Currently son_manipulators always return instances of SON. If you need to use as_class you will need to handle DBRef in your client.
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow