tags: knex

Action executed in 0.000

Each Tag

knex

Common tags - number of posts

all (1), promise (1), JavaScript (1), series (1),

●●●●●○○○

Edward Bramanti - Are you serial, Promise.all?

bcd-alt-text

About a month ago, I came across an interesting problem at work where a database migration with Knex was not working properly. An example similar to the actual problem is shown below:

The first promise renames a table from tomatoes to potatoes. The following promise adds the string column name to the newly renamed table potatoes. While there may seem to be nothing wrong here, this code resulted in an error, saying the table potatoes did not exist.

url: https://bramanti.me/are-you-serial-promise-all/

type: article, format: blog