FlowQuery setOffset and setLimit

Hey guys,

how can I add setOffset and setLimit to a FlowQuery like in the following raw query:

$query->setOffset($queryOffset)->setLimit($itemsPerPage)->execute();

Thanks for your help!

Hey @patriceckhart,

you could use the slice operation.
http://neos.readthedocs.org/en/stable/References/FlowQueryOperationReference.html?highlight=slice#slice

Example usage could be like:
${q(node).children().slice(0, 5).get()

1 Like

Thank you, it works!