|
This is currently not supported because a `byte[]` is compactly serialized as a `BsonBinaryData` value instead of as a `BsonArray`.
We could add support to the `ByteArraySerializer` to use `BsonArray` as the serialized representation. Note that this representation would use much more space, because each byte would be serialized as 32-bit integer (because that's the smallest integer type BSON has).
If the `byte[]` were in fact serialized as a `BsonArray` we could support this `byte[]` query in the same way as arrays of other numeric types.
Alternatively, if we could find some MQL operator that would allow us to extract one byte from a `BsonBinaryData` value we could use that to support this query, but I can't find such an MQL operator and I don't think it exists.
|