Velo: Wix Bookings "Schedule" Collection Fields

Tip: Before continuing, make sure you've read Working with Wix App Collections.

To use the Schedule collection in code, refer to it as "Bookings/Schedule".

Copy
1
wixData.query("Bookings/Schedule")
2
.find()
3
.then( (results) => {
4
// handle the results
5
} );

This document describes the permissions and fields in your Schedule collection. 

Permissions

The Schedule collection has the following permissions:

  • Read: Anyone 
  • Create: None
  • Update: None
  • Delete: None

You cannot change the Schedule collection's permissions. 

Fields

Note: This app collection contains read-only fields that cannot be managed from the collection. You can update the fields from the relevant app in your site’s dashboard.

The field name is listed as the heading of each section, with the field ID listed in parentheses, like this: Name (name). The fields appear in this document in the order in which they appear in your collection by default.

Note You cannot create a dynamic page based on the Schedule collection.

ID (_id)

Description: Displays the service name from the Services collection.

Type: Reference

Can connect to data: Yes

Can be sorted: No

Can be filtered: No

Read-only: Yes

Service Schedule (serviceSchedule)

Description: A JSON object that represents the schedule that has been defined for this service.

Type: Reference

Can connect to data: Yes

Can be sorted: No

Can be filtered: No

Read-only: Yes

Copy
1
{
2
"mon":
3
[
4
{
5
"staffid": "7b14c662-ef34-439a-45a6-8g43b8e15ba7",
6
"startTime": "10:00:00:000",
7
"endTime": "11:30:00:000"
8
}
9
...
10
],
11
"tue": [],
12
...
13
}

Service Duration in Minutes (serviceDurationInMinutes)

Description: The duration of this service, in minutes. For example, if your class lasts an hour and a half, this field displays 90.

Type: Number

Can connect to data: Yes

Can be sorted: No

Can be filtered: No

Read-only: Yes

Repeats Every X Weeks (repeatsEveryXWeeks)

Description: How often this service recurs. For example, if the sessions repeat every 2 weeks, this field displays 2.

Type: Number

Can connect to data: Yes

Can be sorted: No

Can be filtered: No

Read-only: Yes

Was this helpful?
Yes
No