---
title: commit
framework: CloudKit JS
role: symbol
role_heading: Instance Method
platforms: [cloudkit js 1.0+]
path: cloudkitjs/cloudkit.recordsbatchbuilder/commit
---

# commit

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

## Declaration

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

## Return Value

Return Value A Promise object that resolves to a RecordsResponse object if the operation succeeds; otherwise, a CKError object.
