Wixdata.query for an element within an array in collection

If you want to include a reference point you need to use the " include" variable method – “.include(field key name for reference point)” – in your query or you you use the queryReferenced API. Note that including references drastically shortens the max limit you can call since the data object is considerably larger.