Search.../

query

Returns the GroupRequestsQueryBuilder object used to get the current results.

Description

Use query to create and run a new query by chaining additional GroupRequestsQueryBuilder functions to it. You can filter only on properties that haven't already been used in the previous GroupRequestsQueryBuilder.

Was this helpful?

Get query that produced the current result

Copy Code
1const originalQuery = results.query;
2
Perform a query and get query from the result

Copy Code
1import { createRequests } from 'wix-groups.v2';
2
3export async function myQueryFunction() {
4 const results = await createRequests.queryGroupRequests().find();
5
6 return results.query;
7}
8