MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / TreeNode

Class TreeNode

tests/fields/test_fields.py:1447–1449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445 """Ensure that EmbeddedDocumentFields can contain their own documents."""
1446
1447 class TreeNode(EmbeddedDocument):
1448 name = StringField()
1449 children = ListField(EmbeddedDocumentField("self"))
1450
1451 class Tree(Document):
1452 name = StringField()

Callers 1

Calls 3

StringFieldClass · 0.90
ListFieldClass · 0.90

Tested by 1