<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CloudKit",
  "identifier" : "/documentation/CloudKit/CKQueryOperation/Cursor-swift.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CloudKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CKQueryCursor"
  },
  "title" : "CKQueryOperation.Cursor"
}
-->

# CKQueryOperation.Cursor

An object that marks the stopping point for a query and the starting point for retrieving the remaining results.

```
class Cursor
```

## Overview

You don’t create instances of this class yourself. When fetching records using a query operation, if the number of results exceeds the limit for the query, CloudKit provides a cursor. Use that cursor to create a new instance of [`CKQueryOperation`](/documentation/CloudKit/CKQueryOperation) and retrieve the next batch of results for the same query.

For information about how to use a [`CKQueryOperation.Cursor`](/documentation/CloudKit/CKQueryOperation/Cursor-swift.class) object, see [`CKQueryOperation`](/documentation/CloudKit/CKQueryOperation).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)