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:

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";
2
3// ...
4
5const originalQueryResults = await groups.queryGroups()
6 .find({suppressAuth: true})
7
8const newQueryResults = await originalQueryResults.query
9 .startsWith("name", "P")
10 .find({suppressAuth: true});
11
12const firstItem = newQueryResults.items[0];