# Retrieving Multiple Item Reference Field Using Code

**URL:** <https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [November 16, 2018, 2:15am UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163 "2018-11-16T02:15:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![whope](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/whope/32/6625_2.png) [@whope](https://forum.wixstudio.com/u/whope)\
**Post date:** [November 16, 2018, 2:15am UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163/1 "2018-11-16T02:15:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![whope](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/whope/32/6625_2.png) [@whope](https://forum.wixstudio.com/u/whope)\
**Post date:** [November 16, 2018, 2:23am UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163/2 "2018-11-16T02:23:01Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![roi-bendet](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/roi-bendet/32/1283_2.png) [@roi-bendet](https://forum.wixstudio.com/u/roi-bendet)\
**Post date:** [November 22, 2018, 10:32am UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163/3 "2018-11-22T10:32:45Z")

</div>

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

> **[WixDataQuery - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/wix-data/wixdataquery)**
>
> Contains functionality for refining a data query.

Good luck!  
Roi.

---

<div class="post-metadata">

**Author:** ![whope](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/whope/32/6625_2.png) [@whope](https://forum.wixstudio.com/u/whope)\
**Post date:** [November 26, 2018, 4:51am UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163/4 "2018-11-26T04:51:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![elena](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@elena](https://forum.wixstudio.com/u/elena)\
**Post date:** [January 7, 2019, 10:02pm UTC](https://forum.wixstudio.com/t/retrieving-multiple-item-reference-field-using-code/14163/5 "2019-01-07T22:02:12Z")

</div>

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