Our services are in categories, how can i query services by category?
Currently i get all services in one query, like so:
wixData.query("Bookings/Services") .find() .then( (results) => { $w("#serviceRepeater").data = results.items; } );
I would like to perform individual queries to fetch only certain services in select categories, is this possible?
I tried .contains('category', 'my category name'); (also tried "categories") but can't seem to find how to do it.
I have similar question, any update on this?
https://support.wix.com/en/article/wix-bookings-schema-for-wix-search does a query on Bookings\services collection and returns category, but wixdata does not, can you explain?
+1 to this question - I have a similar but not identical question. https://www.wix.com/velo/forum/coding-with-velo/where-is-booking-category-located-in-the-content-manager-table
@Stuart Sonic Okay, got a quick response from the Bookings team. The way to access categories is through the getServiceAvailability API
When you run that you should see category name and ID of the service. Take a look and see if that will work
When the results of all (with no filter) come back is category available? What do you see in the response?
Here are the collection fields i"m seeing: Bookings/Services collection