DOCS-3618 change examples to iterate cursor