vaibhav
vaibhav

Reputation: 4103

MongoDB check the time of document log

I have a collection which stores a array of strings as a part of document and _id , is there a possibility that I can check the timestamp of any of the document which is logged. the document structure is:

{ "_id" : NumberLong(1370891970), "k" : [ "argos","test"]}

Appreciate your help in advance.

-V

Upvotes: 0

Views: 45

Answers (1)

Salvador Dali
Salvador Dali

Reputation: 222761

If this is your document structure, then there is no way to check it. None of your fields contains this information and you also overwrite your _id field.

Upvotes: 1

Related Questions