Search...
query
Returns the GroupsQueryBuilder
object used to get the current results.
Description
Use the query
property to create and run a new query by chaining additional GroupsQueryBuilder functions to it.
Type:
GroupsQueryBuilderRead 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 { groups } from "wix-groups-backend";23// ...45const originalQueryResults = await groups.queryGroups()6 .find({suppressAuth: true})78const newQueryResults = await originalQueryResults.query9 .startsWith("name", "P")10 .find({suppressAuth: true});1112const firstItem = newQueryResults.items[0];