---
title: "add(_:)"
framework: cloudkit
role: symbol
role_heading: Instance Method
path: "cloudkit/ckdatabase/add(_:)"
---

# add(_:)

Executes the specified operation in the current database.

## Declaration

```swift
func add(_ operation: CKDatabaseOperation)
```

## Parameters

- `operation`: The operation to execute.

## Discussion

Discussion Configure the operation fully before you call this method. Prior to the operation executing, CloudKit sets its database property to the current database. The operation executes at the priority and quality of service (QoS) that you specify using the queuePriority and qualityOfService properties.
