Skip to main content

add_in_object_ids

Function add_in_object_ids 

Source
pub fn add_in_object_ids(query: &mut Query, ids: &[String])
Expand description

Intersect an objectId $in into a query. addInObjectIdsIds (DatabaseController.js:1310-1345).

The intersection is the point. Two separate objectId constraints cannot be conjoined by the Mongo lowering (a second $in would overwrite the first, and an $eq beside an $in is a conflict), so the existing constraints are collected and folded in here instead.