items
Returns an array of wixEventsV2
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 wixEventsV2
to navigate the pages of a query result.
Type:
NAME
TYPE
DESCRIPTION
Date and time when the event was created in yyyy-mm-ddThh:mm:sssZ
format.
Event ID.
Date and time when the event was updated in yyyy-mm-ddThh:mm:sssZ
format.
Event schedule details.
URLs that allow you to add an event to the Google calendar, or to download an ICS calendar file.
Assigned contacts label key.
Event date and time settings.
Detailed description of an event. You can enter the description using rich text format (add various types of markups, such as underlines, italics, bolding, color codes, bullet lists, and links by using HTML formatting tags).
Visual settings for event.
Event page URL components.
Event registration form.
Guest list configuration.
Instance ID of the site where the event is hosted.
Event location.
Main event image.
Online conferencing details.
RSVP or ticketing registration details.
SEO settings.
Short description that appears under the event title.
Unique identifier of the event page. The naming is the same as the event title written in kebab case. For example, if your event title is "Leather Crafting 101", then the slug is "leather-crafting-101".
Event status:
UPCOMING
: Event is published and scheduled to start.STARTED
: Event has started.ENDED
: Event has ended.CANCELED
: Event is canceled.DRAFT
: Event is not published.
Summary of RSVP or ticket sales.
Event title.
ID of the user who created the event.
Was this helpful?
items
from a query result1const returnedItems = results.items;2
items
from the result1import { wixEventsV2 } from 'wix-events.v2';23export async function myQueryFunction() {4 const results = await wixEventsV2.queryEvents().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