> 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: hasNext() # Method package: wixData # Method menu location: wixData --> WixDataQueryResult --> hasNext # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-query-result/has-next.md # Method Description: Indicates if the query has more results. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get whether the query result object has more results ```javascript let hasNext = results.hasNext(); // true ``` ## Iterate through all pages of query results ```javascript async function retrieveAllItems() { let results = await wixData.query("myCollection") .limit(1000) .find(); let allItems = results.items; while (results.hasNext()) { results = await results.next(); allItems = allItems.concat(results.items); } return allItems; } ``` ---