Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ to_mongo
Method
to_mongo
mongoengine/fields.py:1571–1572 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
1569
return
super().__set__(instance, value)
1570
1571
def
to_mongo(self, value):
1572
return
Binary(value)
1573
1574
def
validate(self, value):
1575
if
not isinstance(value, (bytes, Binary)):
Callers
1
prepare_query_value
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected