Closed
Description
I am trying to design an endpoint that has a streamed response for returning large JSON results. I am wanting to add a limit query paramater. But it appears to have no effect when used with chunk()
For example this doesn't work. The limit simply has no effect:
$users = Users::select();
$users->skip(0);
$users->take(1);
$users->chunk(1, function($u) {
print_r($u);
});
But this does:
$users = Users::select();
$users->skip(0);
$users->take(1);
print_r($users->get())
Please any help would be massively appreciated.
Metadata
Metadata
Assignees
Labels
No labels