-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set initial value once #10
Comments
I think it is a good idea having a initial value, but I don't know how it could be set though.. let's say you two collections, |
it's very simple! just add 100 to the value in code. |
in this case the package has nothing to do about it, it is done by your application.. |
You could add a switch statement so it uses a different subroutine depending on your collection.
|
Thanks for the quick replies guys. I was actually thinking of going with your first idea @Maxhodges Could either keep the reference as |
Hi there,
Was trying to figure out if it is possible to set an initial starting value for the counter (say
100
)?My initial idea was to add it to test to see if the counter was zero inside a
Meteor.startup
call and then set to 100 if so but don't think there is a getter for a counter?Thanks
The text was updated successfully, but these errors were encountered: