Details
-
Improvement
-
Status: Closed
-
Major - P3
-
Resolution: Done
-
None
-
Fully Compatible
-
QO 2022-12-12
Description
We already have support for bitwise operators - and, or, xor, complement - in both the query and update paths. It would be nice to have this in aggregation as well.
This would allow users run pipelines like:
db.foo.aggregate({
|
"$project": {
|
"flipped": {
|
"$bitComplement": "$a"
|
}
|
}
|
})
|
db.foo.aggregate({
|
"$project": {
|
"xored": {
|
"$bitXor": [
|
NumberInt("10"),
|
"$a",
|
1,
|
]
|
}
|
}
|
})
|
Attachments
Issue Links
- is related to
-
SERVER-3518 Bitwise query operators
-
- Closed
-