---
title: allSubscriptions()
framework: cloudkit
role: symbol
role_heading: Instance Method
path: cloudkit/ckdatabase/allsubscriptions()
---

# allSubscriptions()

Fetches all subscriptions from the current database.

## Declaration

```swift
func allSubscriptions() async throws -> [CKSubscription]
```

## Return Value

Return Value The database’s subscriptions.

## Discussion

Discussion This method throws an error if the request fails, such as when the network is unavailable or the device doesn’t have an active iCloud account. For information on a more configurable way to fetch all subscriptions from a specific database, see fetchAllSubscriptionsOperation().
