Search.../

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:

Array<
V3Event
>
NAME
TYPE
DESCRIPTION
_createdDate
Date

Date and time when the event was created in yyyy-mm-ddThh:mm:sssZ format.

_id
string

Event ID.

_updatedDate
Date

Date and time when the event was updated in yyyy-mm-ddThh:mm:sssZ format.

agendaSettings
AgendaSettings

Event schedule details.

calendarUrls
CalendarUrls

URLs that allow you to add an event to the Google calendar, or to download an ICS calendar file.

contactLabel
string

Assigned contacts label key.

dateAndTimeSettings
DateAndTimeSettings

Event date and time settings.

detailedDescription
string

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).

eventDisplaySettings
V3EventDisplaySettings

Visual settings for event.

eventPageUrl
string

Event page URL components.

form
Form

Event registration form.

guestListSettings
GuestListSettings

Guest list configuration.

instanceId
string

Instance ID of the site where the event is hosted.

location
Location

Event location.

mainImage
string

Main event image.

onlineConferencing
OnlineConferencing

Online conferencing details.

registration
Registration

RSVP or ticketing registration details.

seoSettings
SeoSettings

SEO settings.

shortDescription
string

Short description that appears under the event title.

slug
string

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".

status
string

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.
summaries
Summaries

Summary of RSVP or ticket sales.

title
string

Event title.

userId
string

ID of the user who created the event.

Was this helpful?

Get items from a query result

Copy Code
1const returnedItems = results.items;
2
Perform a query and get items from the result

Copy Code
1import { wixEventsV2 } from 'wix-events.v2';
2
3export async function myQueryFunction() {
4 const results = await wixEventsV2.queryEvents().find();
5
6 const returnedItems = results.items;
7
8 if (returnedItems.length > 0) {
9 return items;
10 } else {
11 // Handle if no matching items found
12 }
13}
14