> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> 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`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - 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: Querying Wix App Collections

## Article: Querying Wix App Collections

## Article Link: https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections.md

## Article Content:

# Querying Wix App Collections

[Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md) are special collections included by some
[apps made by Wix](https://dev.wix.com/docs/develop-websites/articles/wix-apps/about-apps-made-by-wix.md) when you add them to a site. Some of these collections support additional query options, allowing you to refine your queries to retrieve details specific to each collection.

For example, when querying the [Wix Stores Products collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/wix-e-commerce-stores/wix-stores-products-collection-fields.md) using the [`find()`](https://dev.wix.com/docs/velo/api-reference/wix-data/wix-data-query/find.md) method, you can include product variants by specifying the following query options:

```json
import { items } from "@wix/data";

const results = await items.query("myProducts").find({
  "appOptions": {
      "includeVariants": true,
  }
});
```

The collections that support additional query options are listed below. When calling methods that run the query, such as [`find()`](https://dev.wix.com/docs/velo/api-reference/wix-data/wix-data-query/find.md), [`count()`](https://dev.wix.com/docs/velo/api-reference/wix-data/wix-data-query/count.md), or [`distinct()`](https://dev.wix.com/docs/velo/api-reference/wix-data/wix-data-query/distinct.md), you can specify these parameters in the `options.appOptions` object.

## [Wix Stores "Products" Collection](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/wix-e-commerce-stores/wix-stores-products-collection-fields.md)

| Parameter               | Type    | Description                                                                                                                                     |
| ----------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| `includeVariants`       | Boolean | Whether to retrieve [product variants](https://support.wix.com/en/article/wix-stores-adding-and-customizing-product-options). Default: `false`. |
| `includeHiddenProducts` | Boolean | Whether to retrieve [hidden products](https://support.wix.com/en/article/wix-stores-changing-the-visibility-of-a-product). Default: `false`.    |

## See also

- [About apps made by Wix](https://dev.wix.com/docs/develop-websites/articles/wix-apps/about-apps-made-by-wix.md)
- [Working with Wix app collections and code](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code.md)
- [Working with Wix app collection fields](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/working-with-wix-app-collection-fields.md)