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