The $and operator uses short-circuit evaluation
SAE-PP-00368
03/13/2021
- Content
- $and performs a logical AND operation on an array of one or more expressions (e.g. , , etc.) and selects the documents that satisfy all the expressions in the array. The $and operator uses short-circuit evaluation. If the first expression (e.g. ) evaluates to false, MongoDB will not evaluate the remaining expressions.
- Citation
- SintzADMIN, J., "The $and operator uses short-circuit evaluation," SAE MobilityRxiv™ Preprint, submitted March 13, 2021, https://doi.org/10.47953/SAE-PP-00368.