From 717c775abf675452f4ff7cfc1422422ca5f26d89 Mon Sep 17 00:00:00 2001 From: Denilson Date: Wed, 19 Oct 2022 09:36:16 -0300 Subject: [PATCH] Update guide/source/2.8-migration.md Co-authored-by: Frederico Maia --- guide/source/2.8-migration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/source/2.8-migration.md b/guide/source/2.8-migration.md index 9cfb62ecde..105130e2c5 100644 --- a/guide/source/2.8-migration.md +++ b/guide/source/2.8-migration.md @@ -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. -

Why this is important?

+

Why is this new API important?

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