> 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

# Resource: Items

# Type: WixDataResult

# Property: items

# Link: https://dev.wix.com/docs/sdk/data-items-sdk/data/items/wix-data-result/items.md

## 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()`
method, can be retrieved using the `pageSize` property, and
navigating through pages is done with the `prev()` and
`next()` methods.

When no items match the query, the `items` array is empty.

## Examples:

## Get the items of a query result

```javascript
const 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 { items } from "@wix/data";

async function queryItems() {
  const results = await items.query("myCollection")
    .find();

  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",
 *     "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: Self-hosted

```javascript
import { createClient } from "@wix/sdk";
import { items } from "@wix/data";
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const wixClient = createClient({
  modules: { items },
  // Include the auth strategy and host as relevant
});

async function queryItems() {
  const results = await wixClient.items.query("myCollection")
    .find();

  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",
 *     "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"
 *   }
 * ]
 */
```



---



## Schema:

```json
 Type: | type: Array<undefined>

```