Update guide/source/2.8-migration.md

Co-authored-by: Frederico Maia <fredmaiaarantes@gmail.com>
This commit is contained in:
Denilson
2022-10-19 09:36:16 -03:00
committed by GitHub
parent c931e35a3b
commit 717c775abf

View File

@@ -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).