i started learning meteor a while ago and went on to begin with my first project which is a server for a certain board game.
i have started with a main chat room, and decided to keep all the messages in a collection. now, i do not want the old messages to be saved for ever, but only for a few hours, say 3 hours. is there a simple way to tell a collection to only store items for 3 hours and then delete them? or mabye there is a way to tell a collection to only store a certain amount of items and then start deleting the last ones when new items are inserted?
thanks in advance!