I have sub-nodes of a node which I created with childByAutoId(). I am trying to do pagination for using it in TableView however I couldn\'t figure out how.
childByAutoId()
You need to add last timestamp with each sub node and then query
firebaseRef.child("user_id").queryOrdered(byChild: "timestamp").queryEnding(atValue: lastTimeStamp - 1).queryLimited(toLast: 10).observe(.value, with: { (snapshot) in })