Search...
query
Returns the MembershipsQueryBuilder
object used to get the current results.
Description
Use the query
property to create and run a new query by chaining additional MembershipsQueryBuilder functions to it.
Type:
MembershipsQueryBuilderRead Only
Was this helpful?
Get the query that produced the current result
Copy Code
1let resultQuery = results.query;
Perform a query and get the query that produced the result
Copy Code
1import { members } from "wix-groups-backend";23// Sample memberId value:4// '9t678vzc-b93cd-457f-b4a7-6178327834p88'5//6// Sample options value:7// suppressAuth: true8910// ...1112const originalQueryResults = await members.queryMemberships()13 .find({groupId: groupId, options})1415const newQueryResults = await originalQueryResults.query16 .eq("role", "MEMBER")17 .find({memberId: memberId, options});1819const firstItem = newQueryResults.items[0];