How do I filter out data from mongodb in D-code

Anders S anders at xore.se
Tue Oct 10 09:50:15 UTC 2017


On Tuesday, 10 October 2017 at 09:43:10 UTC, Anders S wrote:
> I'm working on a middleware application that reads array of 
> data from a POSIX pipe and insert data into the db if any 
> position in the array has changed.
> This is where my problem lays, in order not to duplicate data I 
> want to fetch the latest data/document in the array of 
> documents.

To clarify,
>This is where my problem lays, in order not to duplicate data I 
>want to fetch the >latest data/document in the array of 
>documents.
refers to latest inserted data/document in the mongodb 
collection. Also that the insert of document that changed include 
a timestamp like this
dateAdded: new Date()


More information about the Digitalmars-d mailing list