How create a Date field with default value as the current timestamp in MongoDb?
<p>How to create a date field with default value,the default value should be current timestamps  whenever the insertion happened in the collection.</p>