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

Function handle_raw_query

mongoengine/queryset/transform.py:65–71  ·  view source on GitHub ↗

Combine a raw query with an existing one

(value, mongo_query)

Source from the content-addressed store, hash-verified

63
64
65def handle_raw_query(value, mongo_query):
66 """Combine a raw query with an existing one"""
67 for op, v in value.items():
68 if op not in mongo_query:
69 mongo_query[op] = v
70 elif op in mongo_query and isinstance(mongo_query[op], dict):
71 mongo_query[op].update(v)
72
73
74# TODO make this less complex

Callers 2

queryFunction · 0.85
updateFunction · 0.85

Calls 2

itemsMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected