MongoDBLink
MongoDBLink copied to clipboard
MongoDB driver for Mathematica
First, thanks for this great repo, its helped a lot of people over the years! I wanted to mention that 11.3 has an official package for interfacing with MongoDB: https://reference.wolfram.com/language/MongoLink/guide/MongoLinkOperations.html...
Convenience for extracting timestamp from IDs. Something like ``` mathematica getTimestamp[rec_] := With[{id = "_id" /. rec}, FromUnixTime@FromDigits[StringTake[id, 8], 16]] ```
Support any of these: `{"_id" -> 0, "fieldA", "fieldB" -> 1, "fieldC" -> True}` That is, allowing either a rule (`_ -> 0|1|True|False`) or a field name (which implies True)....
Serialization and deserialization should go from/to Mathematica Date objects transparently.
Hi Zach, Do you have plans to create a `AggregateDocument` function? It would be really cool if I could do things like: ``` AggregateDocument[ myColletion ,{"$project" -> {"author" -> 1}}...