beyond-the-cloud-dev / soql-lib

The SOQL Lib provides functional constructs for SOQL queries in Apex.
https://soql.beyondthecloud.dev/
MIT License
61 stars 9 forks source link

Add possibility to get list of chosen field values from retrieved data #50

Closed patrykxly closed 1 year ago

patrykxly commented 1 year ago

There is already a method toField() that allows us to get one value of the chosen field. It would be useful to have another method returning the list of values of the chosen field from all sObjects that were retrieved using SOQL query. For example, by using this function we could get list of Strings created from 'Name' field values from 10 Account sObjects.