> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: query() # Method package: wixData # Method menu location: wixData --> WixDataQueryResult --> query # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-query-result/query.md # Method Description: Returns the query used to get the current results. Use the `query` property to create and run a new query by chaining additional WixDataQueryBuilder functions to it. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the query that produced a query result ```javascript let resultQuery = results.query; ``` ## Perform a query and get the query that produced the result ```javascript import wixData from 'wix-data'; // ... wixData.query("myCollection") .find() .then((results) => { let newQuery = results.query; newQuery .ge("color", "red") .find() .then((newQueryResults) => { let firstItem = newQueryResults.items[0]; }) }) .catch((error) => { console.error(error); }); ``` ---