Skip to content

The "old API" warning is unclear about what new API to use instead. #12646

@striezel

Description

@striezel

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 or findOne (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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    missing-docsDocumentation or history entry is missing for the PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions