You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a newbie for django and mongoengine..
so I'm not sure my code is correct on this issue..
class Example(Document):
member = ReferenceField(Members)
query = Example.objects().select_related(max_depth=0)
should not query variable have member field? so that when I code
query.member.name ---> None
but the result would be the member's name like Simson..
In my real application, I don't want to use dereference.. even though the class(Document) has ReferenceField
nor I want to use "only()", "exclude" methods..
How can I make mongoengine not use dereference even though the class(Document) has its own ReferenceField?
(I just implemented ReferenceField for the future so as to use it one day.. but not now)
The text was updated successfully, but these errors were encountered:
I'm a newbie for django and mongoengine..
so I'm not sure my code is correct on this issue..
should not query variable have member field? so that when I code
but the result would be the member's name like Simson..
In my real application, I don't want to use dereference.. even though the class(Document) has ReferenceField
nor I want to use "only()", "exclude" methods..
How can I make mongoengine not use dereference even though the class(Document) has its own ReferenceField?
(I just implemented ReferenceField for the future so as to use it one day.. but not now)
The text was updated successfully, but these errors were encountered: