Add method for returning IDs from a query builder
aaemnnosttv opened this issue · comments
Evan Mattson commented
As it is, using a Query Builder with a model will always return a collection of model instances.
This means doing a bunch of queries that may not be necessary if IDs are all that are needed.
This would likely be possible via a new alternate terminating method of the query builder, such as resultIds()
and/or another builder method like ids()
.