items
Returns an array of attendance
items that match the query.
Description
items
contains the current page of results retrieved by the query.
If no results match the query, items
is an empty array.
The page size is defined by the limit()
function and can be retrieved using the pageSize
property. You can use the next()
and prev()
functions returned by attendance
to navigate the pages of a query result.
Type:
NAME
TYPE
DESCRIPTION
ID of the Attendance
object.
Corresponding booking ID.
Total number of participants that attended the session. By default, the number
of attendees is set to 1
, but you can set a number to greater than 1
if multiple
participants attended.
Do not set to 0
to indicate that no one attended the session. Instead, set the status
field to NOT_ATTENDED
.
Default: 1
Corresponding session ID.
Status indicating if any particpants attended the session:
NOT_SET
: There is no available attendance information.ATTENDED
: At least a single participant attended the session.NOT_ATTENDED
: No participants attended the session.
Was this helpful?
items
from a query result1const returnedItems = results.items;2
items
from the result1import { attendance } from 'wix-bookings.v2';23export async function myQueryFunction() {4 const results = await attendance.queryAttendance().find();56 const returnedItems = results.items;78 if (returnedItems.length > 0) {9 return items;10 } else {11 // Handle if no matching items found12 }13}14