mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Update guide/source/2.8-migration.md
Co-authored-by: Frederico Maia <fredmaiaarantes@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@ Meteor `2.8` introduce the new MongoDB Package Async API. For a complete breakdo
|
||||
|
||||
For this new async API, we have new methods like `findOneAsync`, which behaves exactly like the `findOne` method, but it now returns a promise that needs to be resolved to get the data.
|
||||
|
||||
<h3 id="why-like-this">Why this is important?</h3>
|
||||
<h3 id="why-like-this">Why is this new API important?</h3>
|
||||
|
||||
You may know that on Meteor we use a package called [Fibers](https://github.com/laverdet/node-fibers). This package is what makes possible to call async function, like `db.findOne()`, inside Meteor in a sync way (without having to wait for the promise to resolve).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user