draft implementation of server side pagination for retriveOne