Hello all, please forgive me if my question is too easy but I am trying to learn velo for developing my own website.
I've been following the wix wiz youtube tutorials and I think they are amazing. But since I am new to javascript and velo in wix, I am finding it difficult to follow along :) I've been reading the velo documentation and trying to understand the parameters in the WixData.queryReferenced function. The first parameter is the collection ID. That I think I understand. But I am struggling with the second parameter -the "item" which is supposed to be a union (btw I have no idea what it is). The third parameter is the PropertyName and I belive it refers to the multi-referenced field in the collection ID.
Can you guys help me understand what the "item" parameter in queryReferenced refers to?
Below is an image of a sample collection with multi-reference fields. The collection has an ID "Printsizes"

If I would like to do queryReferenced on this collection, I believe the first and third parameters should be "Printsizes" and "Printmaterial_2X3Sizes", respectively e.g.,
queryReferenced("Printsizes", "item", "Printmaterial_2X3Sizes")
However, I have no clue what the second parameter "item" is. I wanted to access the first row and references in "Printmaterial_2X3Sizes" column, is the second parameter in queryReferenced just "4x6"? Your help will be very much appreciated!
Hi Abedin, if you console.log(object) you can see the value of the reference.
setObject = queryReferenced(para 1, para 2, para3)
console.log(setObject)
preview the page and view the console you'll see what comes back. Or to see the item directly you can console.log the item before the function is called to see what is being sent to queryReferenced. hope this helps.