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
The "old API" warning is unclear about what new API to use instead. #12646
Comments
There are new *async versions of each method that should be used remove -> removeAsync etc |
Good to know. This move to asynchronous versions should also be mentioned in the migration guide and the documentation for |
I think the only docs about those methods are in 2.8 migration guide. Will make this a docs issue for this reason. |
updating 2.12 guide with corrections from #12646
|
The migration guide for Meteor 2.12 mentions a way to enable warnings about an old API, so out of curiosity I enabled it on my project. It looks like every use of methods like
remove
,insert
orfindOne
(and maybe others, too) on MongoDB collections trigger that warning. That's fine so far, because it informs me what will be removed in Meteor 3.However, neither the warning nor the migration guide mention what API should be used instead. That makes the warning kind of pointless, because even if I am willing to migrate to a newer API, I do not have any idea what API that should be. So I checked the documentation on collections and it looks like
insert
etc. are still the way to use MongoDB collections. 🤔So the question is: What should Meteor users use instead, any why does the documentation not contain a pointer to the new API? That would make migration easier.
The text was updated successfully, but these errors were encountered: