MCPcopy 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

modifyMethod · 0.80
_queryMethod · 0.80
test_empty_qMethod · 0.80
test_and_combinationMethod · 0.80
test_or_combinationMethod · 0.80

Calls 4

acceptMethod · 0.95
acceptMethod · 0.45

Tested by 6

test_empty_qMethod · 0.64
test_and_combinationMethod · 0.64
test_or_combinationMethod · 0.64