> 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: items() # Method package: wixData # Method menu location: wixData --> WixDataAggregateResult --> items # Method Link: https://dev.wix.com/docs/velo/apis/wix-data/wix-data-aggregate-result/items.md # Method Description: Gets the aggregated values. The current page of items retrieved by the aggregation. The page size is defined by the [`limit()`](wix-data.WixDataAggregate.html#limit) function and navigating through pages is done with the [`next()`](#next) function. When no items match the aggregation, the `items` array is empty. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Get the aggregate values ```javascript let items = results.items; ``` ## Run an aggregation and get the aggregate values ```javascript import wixData from 'wix-data'; wixData.aggregate("PopulationData") .group("state") .max("population") .run() .then((results) => { if (results.items.length > 0) { let items = results.items; // see below } else { // handle case where no matching items found } }); /* Given the sample data above, items is: * [ * {"_id": "NY", "populationMax": 8192000}, * {"_id": "CA", "populationMax": 3796000}, * {"_id": "FL", "populationMax": 401000} * ] */ ``` ---