Auto increment collection property


#1

Hi, I’d like to know if there is a way to do what the mongo-counter atmosphere library used to do before Meteor 1.3.

Thanks


#2

Maybe something like this?


#3

I’ll try it out and let you know. Thanks a lot!


#4

Worked like a charm. But I still have some doubts.
Is this the best/cleanest way to do this?


#5

Well, the code may not be the best/cleanest :wink:, but the method follows MongoDB recommendations.