Promises in array forEach loop

I have an array like this: var ids = [8372839402, 8392615782, 3677281302]; Inserted are id values. Based on this ids I have to get for each one some information from the database. Basicly I get data …