Search...
query
Returns the ResourceCatalogQueryBuilder object used to get the current results.
Description
Use the query
property to create and run a new query by chaining additional ResourceCatalogQueryBuilder
functions to it. You can only filter on properties that have not already been used in the previous query.
Type:
ResourceCatalogQueryBuilderRead Only
Was this helpful?
Get the query that produced a query result
Copy Code
1let resultQuery = results.query;
Perform a query, get the query that produced the results and modify it
Copy Code
1import { resources } from "wix-bookings-backend";23// ...45resources.queryResourceCatalog()6 .find()7 .then((results) => {8 let newQuery = results.query;9 newQuery10 .eq("slugs.name","john-doe")11 .find()12 .then((newQueryResults) => {13 let firstItem = newQueryResults.items[0];14 })15 })16 .catch((error) => {17 console.error(error);18 });