Search...
query
Returns the query used to get the current results.
Type:
PublicPlansQueryBuilderRead Only
Was this helpful?
Get the query that produced a query result
Copy Code
1const resultQuery = results.query;
Perform a query and get the query that produced the result
Copy Code
1import wixPricingPlansBackend from 'wix-pricing-plans-backend';23// ...45wixPricingPlansBackend.queryPublicPlans()6 .find()7 .then((results) => {8 const newQuery = results.query;9 newQuery10 .ge("_createdDate", "2021-01-01T15:21:41.960Z")11 .find()12 .then((newQueryResults) => {13 const firstItem = newQueryResults.items[0];14 })15 })16 .catch((error) => {17 const queryError = error;18 });