> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: items() # Method package: wixData # Method menu location: wixData --> WixDataQueryReferencedResult --> items # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-query-referenced-result/items.md # Method Description: Returns the items that match the reference query. The current page of items retrieved by the reference query. The page size is 50 items. Navigate through pages of items with the [`prev()`](#prev) and [`next()`](#next) functions. When no items match the reference query, the `items` array is empty. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the items of a reference query result ```javascript let items = results.items; /* * [ * { * "_id": "1234", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-29T08:35:52.344Z", * "_updatedDate": "2017-05-29T08:35:52.344Z", * "first_name": "Jane", * "last_name": "Doe" * }, * { * "_id": "5678", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-25T12:48:56.572Z", * "_updatedDate": "2017-05-29T07:30:15.869Z", * "first_name": "John", * "last_name": "Doe" * } * ] */ ``` ## Perform a reference query and get the items of the result ```javascript import wixData from 'wix-data'; // ... wixData.queryReferenced("movies", "00001", "actors") .then((results) => { if(results.items.length > 0) { console.log(results.items); // see below } else { // handle case where no matching items found } }) ; /* items: * * [ * { * "_id": "1234", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-29T08:35:52.344Z", * "_updatedDate": "2017-05-29T08:35:52.344Z", * "first_name": "Jane", * "last_name": "Doe" * }, * { * "_id": "5678", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-25T12:48:56.572Z", * "_updatedDate": "2017-05-29T07:30:15.869Z", * "first_name": "John", * "last_name": "Doe" * } * ] */ ``` ---