hi Chirst I can not paginate at Firebase.

https://github.com/kreait/firebase-php

I’m using this package
I want to take 10 recipes and go backwards.

return $database->getReference($this->path . ‘/’ . $conversationId . ‘/messages’)
->orderByChild(‘created_at’)
->limitToFirst(config(‘firebase.take’))
->startAt($startAt)
->getValue();

My sample.

My data structure ;
conversations

messages

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade