Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Search without mapping records #4

Open
kerwanp opened this issue Oct 1, 2024 · 0 comments
Open

Search without mapping records #4

kerwanp opened this issue Oct 1, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@kerwanp
Copy link
Contributor

kerwanp commented Oct 1, 2024

Description

There should be a way to search records without having to map them to Lucid records and directly get the result from the driver.

Proposal

There could be two new methods on the Builder: raw and paginateRaw that returns the driver results without mapping them:

await Post.search('Magnify').take(10).raw()
await Post.search('Magnify').paginateRaw(1, 25).raw()

The Builder should have a new generic that extends the MagnifyEngine to properly type the returns.

@kerwanp kerwanp added the enhancement New feature or request label Oct 1, 2024
@kerwanp kerwanp added this to the v1 milestone Oct 1, 2024
@kerwanp kerwanp mentioned this issue Oct 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant