This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Counts resources according to given criteria.
Use WQL filter to define the criteria.
function countResources(
options: CountResourcesOptions,
): Promise<CountResourcesResponse>;
Filter to base the count on. See queryResources() for supported filters.
import { resources } from "@wix/bookings";
async function countResources(options) {
const response = await resources.countResources(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.