Retrieving Multiple Item Reference Field Using Code

Hi,

I’m trying to print out the results from a query on one of my collections which has a “Multiple Item” reference field. However, when I print it out using console.log() the object does not contain the reference field at all.

Is it possible to get this array of information for use in code?

1 Like

Actually, it seems like you can’t access ANY of the reference fields, whether they are multiple items or not. Is there a way for me to have the query return objects with the reference fields included? This would be super useful!

Hi,
It’s possible.
Take a look at the example here:

Good luck!
Roi.

Ah, that is exactly what I was looking for! Thanks so much!

Hi Roi, can you please explain if there’s a way to use the Include function on multiple item reference fields?