Creates a query to retrieve a list of RSVPs.
The queryRsvps()
function builds a query to retrieve a list of RSVPs and returns an RsvpsQueryBuilder
object.
The returned object contains the query definition, which is typically used to run the query using the find()
function.
You can refine the query by chaining RsvpsQueryBuilder
functions onto the query. RsvpsQueryBuilder
functions enable you to sort, filter, and control the results queryRsvps()
returns.
queryRsvps()
runs with these RsvpsQueryBuilder
defaults, which you can override:
The functions that are chained to queryRsvps()
are applied in the order they're called. For example, if you apply ascending('status') and then descending('eventId'), the results are sorted first by the status, and then, if there are multiple results with the same status, the items are sorted by event ID.
Note: This method is quite slow. We suggest you using the following filter pairs for the most optimal speed:
eventId
and status
eventId
and fullyCheckedIn
eventId
and memberId
eventId
and contactId
eventId
and createdDate
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,in() ,exists() |
eventId | eq() ,ne() ,in() ,exists() |
_createdDate | eq() ,ne() ,in() ,gt() ,ge() ,lt() ,le() ,ascending() ,descending() |
_updatedDate | eq() ,ne() ,in() ,gt() ,ge() ,lt() ,le() ,ascending() ,descending() |
memberId | eq() ,ne() ,in() ,exists() |
contactId | eq() ,ne() ,in() ,exists() |
status | eq() ,ne() ,in() ,ascending() ,descending() |
fullyCheckedIn | eq() ,ne() ,in() ,ascending() ,descending() |
You can only call this method when authenticated as a Wix app or Wix user identity.