aaemnnosttv / silk

A modern API for WordPress.

Home Page:https://aaemnnost.tv/silk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add method for returning IDs from a query builder

aaemnnosttv opened this issue · comments

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().