> 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 --> WixDataQueryResult --> items # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-query-result/items.md # Method Description: Returns the items that match the query. The current page of items retrieved by the query. The page size is defined by the [`limit()`](wix-data.WixDataQuery.html#limit) function, can be retrieved using the [`pageSize`](#pageSize) property, and navigating through pages is done with the [`prev()`](#prev) and [`next()`](#next) functions. When no items match the 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 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", * "title": "Dr.", * "first_name": "Jane", * "last_name": "Doe", * "status": "active" * }, * { * "_id": "5678", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-25T12:48:56.572Z", * "_updatedDate": "2017-05-29T07:30:15.869Z", * "title": "Mr.", * "first_name": "John", * "last_name": "Doe", * "status": "active" * } * ] */ ``` ## Perform a query and get the items of the result ```javascript import wixData from 'wix-data'; // ... wixData.query("myCollection") .find() .then((results) => { if(results.items.length > 0) { let items = 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", * "title": "Dr.", * "first_name": "Jane", * "last_name": "Doe", * "status": "active" * }, * { * "_id": "5678", * "_owner": "f45jf8d2-grkj-2opd-4ovk-9rfj4wo5tvj3", * "_createdDate": "2017-05-25T12:48:56.572Z", * "_updatedDate": "2017-05-29T07:30:15.869Z", * "title": "Mr.", * "first_name": "John", * "last_name": "Doe", * "status": "active" * } * ] */ ``` ---