hey everyone im trying to retrive all reosureces that are in a portal item using the fetchResources function but it return
nextStart : -1
resources: []
total: 0
although there is resources in the portal item
what im doing wrong?
const item = new PortalItem({
id: "0890f410a5314b448528f059e3083261",
portal
});
await item.load();
console.log(item.fetchResources());
Resources:
![eyalj_0-1678706920324.png eyalj_0-1678706920324.png](https://community.esri.com/t5/image/serverpage/image-id/65068i7D0A61E4D859EFC2/image-size/medium?v=v2&px=400)