This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Counts staff members according to given criteria.
Use WQL filter to define the criteria.
For field support for filters, see Staff Members: Supported Filters
function countStaffMembers(
options: CountStaffMembersOptions,
): Promise<CountStaffMembersResponse>;
import { staffMembers } from "@wix/bookings";
async function countStaffMembers(options) {
const response = await staffMembers.countStaffMembers(options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.