what's wrong with this ?

HI All,

I have written the following code

I just want to iterate over the list which I have created using enum function, but it's keep on saying that listOfIntegers is unused variable though I want to use in forEach loop.. 

Can anyone please correct me here.. 

Thanks

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to sourabh2512

    This is a super confusing way to construct this for the end result you're apparently after.

    If you want to try to query all data in the data store, you should just do that in your initial query - and pass in a Query Selection value to only pull back the column you're interested in, which will make the query more efficient (instead of what you're currently doing, which is to apparently force the query to grab all columns, then using index() [instead of property(), grumble] to grab the "processId" property from the result, meaning you're consuming more query bandwidth than necessary.

Children
No Data