> 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: About Wix App Collection Queries

## Article: About Wix App Collection Queries

## Article Link: https://dev.wix.com/docs/develop-websites-sdk/code-your-site/extend-wix-business-solutions/wix-app-collections/about-wix-app-collection-queries.md

## Article Content:

# About Wix App Collection Queries

Wix app collections are special collections included by some [apps made by Wix](https://dev.wix.com/docs/develop-websites-sdk/get-started/overview/integrate-with-wix-business-solutions.md) when you add them to a site. 

## Query methods

You can query Wix app for data using 2 approaches:

1. **Generic Wix Data query methods**: Use the standard [Wix Data Items API](https://dev.wix.com/docs/api-reference/business-solutions/cms/data-items/introduction.md) methods like `query()`, `get()`, and `find()` to interact with app collections the same way you would with regular collections.

2. **SDK-specific query methods**: Many Wix apps also provide their own specialized query methods through the Wix SDK.

## Query limitations

Not all fields in Wix app collections can be used for filtering or sorting operations. Each collection has specific fields that support these operations.

## Additional query options

Some Wix app 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 using the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-query/find.md) method, you can include product variants by specifying the following query options:

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

const results = await items.query("Stores/Products").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/sdk/backend-modules/data/items/wix-data-query/find.md), [`count()`](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-query/count.md), or [`distinct()`](https://dev.wix.com/docs/sdk/backend-modules/data/items/wix-data-query/distinct.md), you can specify these parameters in the `options.appOptions` object.

## Supported collections and options

The following collections support additional query options.

### Products collection

| 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

- [Integrate with Wix Business Solutions](https://dev.wix.com/docs/develop-websites-sdk/get-started/overview/integrate-with-wix-business-solutions.md)