Join GitHub today
Implemented $bitsAllClear, $bitsAllSet, $bitsAnyClear, $bitsAnySet in minimongo #8350
Got buffers working, I think. One thing I'm unsure of is if Mongo will ever pass back anything other than a Uint8Array (like a Uint16Array for example). I get the feeling it doesn't, if I try to directly insert an instance of a Uint16Array when I query it back get a POJO.
Thanks for working on this!
Since minimogo runs on the client, it contributes to the initial bundle size, so shorter code is better. Also, avoiding repetition makes code generally easier to maintain.