Auto increment collection property

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.


Maybe something like this?

1 Like

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

1 Like

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

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

1 Like