Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MongoEngine/mongoengine
/ Relation
Class
Relation
tests/test_dereference.py:367–369 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
365
""
"Ensure you can handle circular references"
""
366
367
class
Relation(EmbeddedDocument):
368
name = StringField()
369
person = ReferenceField(
"Person"
)
370
371
class
Person(Document):
372
name = StringField()
Callers
1
test_circular_reference
Method · 0.85
Calls
2
StringField
Class · 0.85
ReferenceField
Class · 0.85
Tested by
1
test_circular_reference
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…