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

Limit issue when multiple parents are involved #5

Open
wolfy-j opened this issue Mar 29, 2017 · 1 comment
Open

Limit issue when multiple parents are involved #5

wolfy-j opened this issue Mar 29, 2017 · 1 comment

Comments

@wolfy-j
Copy link
Member

wolfy-j commented Mar 29, 2017

No description provided.

@wolfy-j wolfy-j added the bug label Mar 29, 2017
@wolfy-j
Copy link
Member Author

wolfy-j commented Mar 29, 2017

Currently, you can only use limit properly when 1 record is being loaded which is still cool, but I wish if we can find a way to limit selection for multiple parents (presume multiple nested requests are required).

At this moment pre-aggregation of limited data can be done via external custom relations to cache or mongo.

$posts->findByPK($id, ['comments'=> ['limit' => 10]]);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant