Return result of query as variable

Put the wixData.aggregate in the same line of the return and not in a new line. Like this:

return wixData.aggregate("Competition")