mongo pagination example using improved adapter