Collection Queries with Firebase
Chris Esplin
40913

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