<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "CloudKitJS",
  "identifier" : "/documentation/CloudKitJS/CloudKit.RecordsBatchBuilder/commit",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CloudKit JS"
    ],
    "preciseIdentifier" : "instm/CloudKit.RecordsBatchBuilder/commit"
  },
  "title" : "commit"
}
-->

# commit

Executes the operations on the database that created this batch builder object.

```
Promise<CloudKit.RecordsResponse, CloudKit.CKError> commit();
```

## Return Value

A `Promise` object that resolves to a RecordsResponse object if the operation succeeds; otherwise, a [`CKError`](/documentation/CloudKitJS/CloudKit/CKError) object.

---

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)