Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于儿子操作和as_class参数 by的非常特殊的问题find。添加 AutoReference 操纵器后,我从光标获得了一个 SON 对象,而不是我在as_class参数中定义的类中的对象。
as_class
find
有没有人有同样的问题,这是pymongo中的错误还是我只是愚蠢?
最好的问候
目前,son_manipulators 总是返回 SON 的实例。如果您需要使用 as_class,则需要在客户端中处理 DBRef。