You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mongo driver functionality is async in nature. To prevent Migrator from updating to the next version before the migration script is complete, using an async function for both up()/down(). This will ensure migration completes before version bump. Note: async func = async | promise.
We might have to require up()/down() to be an async function in the future. For now, warn users to avoid breaking existing code.
The text was updated successfully, but these errors were encountered:
- This failed when typescript transpiled async/wait since the result was a regular function. Will reimplement this warning
when we decide to support only node v8+.
Mongo driver functionality is async in nature. To prevent Migrator from updating to the next version before the migration script is complete, using an async function for both up()/down(). This will ensure migration completes before version bump. Note: async func = async | promise.
We might have to require up()/down() to be an async function in the future. For now, warn users to avoid breaking existing code.
The text was updated successfully, but these errors were encountered: