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_classson の操作と によるパラメータについて非常に特別な質問がありますfind。AutoReference マニピュレータを追加した後、as_classパラメータで定義したクラスからのオブジェクトではなく、カーソルから SON オブジェクトを取得します。
as_class
find
同じ問題を抱えている人はいますか、これは pymongo のバグですか、それとも私は愚かですか?
よろしく
現在、son_manipulators は常に SON のインスタンスを返します。as_class を使用する必要がある場合は、クライアントで DBRef を処理する必要があります。