Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ to_query
Method
to_query
mongoengine/queryset/visitor.py:89–92 ·
view source on GitHub ↗
(self, document)
Source
from the content-addressed store, hash-verified
87
OR = 1
88
89
def
to_query(self, document):
90
query = self.accept(SimplificationVisitor())
91
query = query.accept(QueryCompilerVisitor(document))
92
return
query
93
94
def
accept(self, visitor):
95
raise
NotImplementedError
Callers
8
modify
Method · 0.80
_query
Method · 0.80
test_empty_q
Method · 0.80
test_and_combination
Method · 0.80
test_or_combination
Method · 0.80
test_and_or_combination
Method · 0.80
test_or_and_or_combination
Method · 0.80
test_multiple_occurence_in_field
Method · 0.80
Calls
4
accept
Method · 0.95
SimplificationVisitor
Class · 0.85
QueryCompilerVisitor
Class · 0.85
accept
Method · 0.45
Tested by
6
test_empty_q
Method · 0.64
test_and_combination
Method · 0.64
test_or_combination
Method · 0.64
test_and_or_combination
Method · 0.64
test_or_and_or_combination
Method · 0.64
test_multiple_occurence_in_field
Method · 0.64