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

Class Doc

tests/document/test_json_serialisation.py:24–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 string = StringField(db_field="s")
23
24 class Doc(Document):
25 string = StringField(db_field="s")
26 embedded = EmbeddedDocumentField(Embedded, db_field="e")
27
28 doc = Doc(string="Hello", embedded=Embedded(string="Inner Hello"))
29 doc_json = doc.to_json(

Callers 3

test_json_namesMethod · 0.70
test_json_simpleMethod · 0.70
test_json_complexMethod · 0.70

Calls 15

StringFieldClass · 0.85
IntFieldClass · 0.85
FloatFieldClass · 0.85
BooleanFieldClass · 0.85
DateTimeFieldClass · 0.85
ListFieldClass · 0.85
DictFieldClass · 0.85
ObjectIdFieldClass · 0.85
ReferenceFieldClass · 0.85
MapFieldClass · 0.85
DecimalFieldClass · 0.85

Tested by 3

test_json_namesMethod · 0.56
test_json_simpleMethod · 0.56
test_json_complexMethod · 0.56