> 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

> **Deprecated.** This method is deprecated. Planned removal date: 2025-01-01.

# Method name: queryResourceCatalog()

# Method package: wixBookingsBackend

# Method menu location: wixBookingsBackend --> Resources --> queryResourceCatalog

# Method Link: https://dev.wix.com/docs/velo/apis/wix-bookings-backend/resources/query-resource-catalog.md

# Method Description:

**Deprecated.**
Query Resource Catalog has been replaced with [Query Resources](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/query-resources.md) and [Query Staff Members](https://dev.wix.com/docs/sdk/backend-modules/bookings/staff-members/query-staff-members.md) SDK methods and will be removed on March 31, 2026.


The `queryResourceCatalog()` function builds a query to retrieve a catalog of resources, including resources' related schedules and slugs, and returns a [`ResourceCatalogQueryBuilder`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/introduction.md) object.
The returned object contains the query definition, which is typically used to run the query using the [`find()`](#find) function.

The `ResourceCatalogQueryBuilder` functions enable you to run, filter, and control
which results a query returns.

Typically, you build a query using the resource catalog query function,
refine the query by chaining `ResourceCatalogQueryBuilder` functions, and then execute the
query by chaining the `find()` function.


The query runs with the following `ResourceCatalogQueryBuilder` defaults that you can override:

+ [`skip`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/skip.md): `0`
+ [`limit`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/limit.md): `50`

The following query builder functions are supported for `queryResourceCatalog()`. 
|Property|Supported Filters&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|
|--|--|
|`_id`|[`eq()`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/eq.md)| 
|`slugs.name` | [`eq()`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/eq.md), [`hasSome()`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-builder/has-some.md)| 

For a full description of the Resources object, see the object returned for the [`items`](https://dev.wix.com/docs/velo/api-reference/wix-bookings-backend/resources/resource-catalog-query-result/items.md) array in `ResourceCatalogQueryResult`.

>**Note:**
> Only users with the **Bookings Admin** [role](https://support.wix.com/en/article/roles-permissions-overview#bookings-admin) can query resources.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Create a query, add an eq filter, and run it

```javascript
import { resources } from "wix-bookings-backend";

// ...

return resources.queryResourceCatalog()
  .eq("_id","290113d8-e525-4619-a154-b0c45110348f")
  .find()
  .then((results) => {
    if (results.items.length > 0) {
      const items = results.items;
      const firstItem = items[0];
      const totalCount = results.totalCount;
      const pageSize = results.pageSize;
      const currentPage = results.currentPage;
      const totalPages = results.totalPages;
      const hasNext = results.hasNext();
      const hasPrev = results.hasPrev();
      const length = results.length;
      const query = results.query;
      return results.items;
    } else {
      // handle case where no matching items found
    }
  })
  .catch((error) => {
    console.error(error);
  });

 /* Returns a promise that resolves to an array of resourceCatalog objects:
  *
  *  [
  *     {
  *      "resource": {
  *        "_id": "290113d8-e525-4619-a154-b0c45110348f",
  *        "name": "Jack Brown",
  *        "email": "jbrown@test.com",
  *        "phone": "555 4321",
  *        "description": "Instructor",
  *        "tags": [
  *          "staff"
  *        ],
  *        "scheduleIds": [
  *          "95d8769e-ce74-4fe2-ab79-ab24e5c14e0e"
  *        ],
  *        "status": "UPDATED"
  *      },
  *      "schedules": [
  *        {
  *          "availability": {
  *            "linkedSchedules": [
  *              {
  *                "scheduleId": "9299760d-8a4a-4f89-b348-1fc611f4be17"
  *              }
  *            ],
  *            "start": "2021-04-18T07:22:42.274Z"
  *          },
  *          "_id": "95d8769e-ce74-4fe2-ab79-ab24e5c14e0e",
  *          "scheduleOwnerId": "290113d8-e525-4619-a154-b0c45110348f"
  *        }
  *      ],
  *      "slugs": [
  *        {
  *          "_createdDate": "2021-04-18T07:22:43.392Z",
  *          "name": "jack-brown"
  *        }
  *      ]
  */ 
```

---