Retrieves a list of up to 100 members, given the specified filters, fieldsets, sorting and paging, and returns a MembersQueryBuilder
object.
The returned object contains the query definition which is typically used to run the query using the find()
method.
You can refine the query by chaining MembersQueryBuilder
methods onto the query. MembersQueryBuilder
methods enable you to sort, filter, and control the results that queryMembers()
returns. The methods that are chained to queryMembers()
are applied in the order they are called.
queryMembers()
runs with the following MembersQueryBuilder
defaults that you can override:
skip
: 0
limit
: 100
Currently supported fields for sorting:
profile.nickname
contact.firstName
contact.lastName
createdDate
lastLoginDate
The following MembersQueryBuilder
methods are supported for the queryMembers()
method. For a full description of the Locations object, see the returned for the items
property in MembersQueryResult
.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
loginEmail | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
contactId | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
contact.firstName | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
contact.lastName | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
profile.nickname | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
profile.slug | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,gt() ,lt() ,le() ,ge() |
privacyStatus | eq() ,ne() ,exists() ,in() ,hasSome() |
Query options.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.