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

# add(_:)

Adds an operation to the container’s queue.

## Declaration

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

## Parameters

- `operation`: The operation to add to the queue. Make sure you fully configure the operation and have it ready to execute. Don’t change the operation’s configuration after you queue it.

## Discussion

Discussion This method adds the operation to a queue that the container manages. The queue’s operations execute on background threads concurrently, and with default priorities. When you add an operation to the queue, its container becomes the current container.
