@info23579 The array singoleRecensioni is undefined since the code above in the query’s .then() function hasn’t run yet. You should move those lines of code into the .then() function after the for loop where you build the singoleRecensioni array.
The .then() function is run after the query’s Promise is fulfilled, that is, when the query returns its results.
See the following for more information about Promises: