Gift Quiz, Result Page Not Working

For

quizProducts = quizProducts . map ( quizProduct => quizProduct . productId );

it’s telling me property ‘map’ does not exist on type “WixDataQueryResult”
&

quizProducts = getRandomItemsFromArray ( quizProducts , numberOfSlides )

the error is with quizProducts & it says that I’m trying to assign an object of type ‘any[ ]’ to a variable that is declared as “WixDataQueryResult”
I have a database named “productKeywords” & a dataset “productKeywords dataset”/#dataset1

I’m not sure why the code isn’t working.