queryResourceTypes( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Creates a query to retrieve a list of resource types.

The queryResourceTypes() function builds a query to retrieve a list of resource types and returns a ResourceTypesQueryBuilder object.

The returned object contains the query definition, which is typically used to run the query using the find() function.

You can refine the query by chaining ResourceTypesQueryBuilder functions onto the query. ResourceTypesQueryBuilder functions enable you to sort, filter, and control the results that queryResourceTypes() returns.

queryResourceTypes() runs with the following ResourceTypesQueryBuilder default that you can override:

  • limit is 50.
  • Sorted by id in ascending order.

The functions that are chained to queryResourceTypes() are applied in the order they are called.

The following ResourceTypesQueryBuilder functions are supported for the queryResourceTypes() function. For a full description of the resource object, see the object returned for the items property in ResourceTypesQueryResult.

PROPERTYSUPPORTED FILTERS & SORTING
nameeq(),ne(),exists(),in(),hasSome(),startsWith()
Permissions
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsQueryResourceTypesOptions
Returns
Did this help?