statamic / cms

The core Laravel CMS Composer package
https://statamic.com
Other
4.11k stars 538 forks source link

[5.x] Allow transformResults to be called separately from getBaseItems #11115

Closed ryanmitchell closed 1 week ago

ryanmitchell commented 1 week ago

Would it be possible to split this logic out so transformResults could be called separately?

Im working on an update to Typesense to handle pagination on the API side (rather than getting all the results then paginating in Statamic), so I need to be able to transform inside my query builder paginate() function.

PR here if it helps make sense of what we need: https://github.com/statamic-rad-pack/typesense/pull/7