I have this where i have a query to get the teams and filtering them by their league. My problem is that in the the console.log of the following code the data is being shown