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

War es hilfreich?

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
scroll top