Search.../

query

Returns the query used to get the current results.

Type:

WixDataQueryRead Only

Was this helpful?

Get the query that produced a query result

Code Example

Copy Code
1let resultQuery = results.query;
Perform a query and get the query that produced the result

Code Example

Copy Code
1import wixData from 'wix-data';
2
3// ...
4
5wixData.query("myCollection")
6 .find()
7 .then( (results) => {
8 let resultQuery = results.query;
9 } ) ;