V
V
Vlad Timofeev2015-02-26 02:18:43
JavaScript
Vlad Timofeev, 2015-02-26 02:18:43

How to set lifetime for posts with a specific field?

Good day, there is a scheme of posts where there is a field inTrash: Boolean.
And there is such a mongo feature docs.mongodb.org/manual/tutorial/expire-data
How to apply it not for all posts from the collection, but only for posts with the 'inTrash':true field (it will be set by the moderator. )?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Sysoletin, 2015-02-26
@PyTiMa

Here , I put it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question