> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openbridge.shop/llms.txt
> Use this file to discover all available pages before exploring further.

# .get()

> Fetch a single collection

```javascript theme={null}
openbridge.collections.get(idOrHandle)
openbridge.collections.get(idOrHandle).select(fields)
```

Fetches a single collection by handle or Shopify GID. Supports chaining `.select()` to limit fields.

## Parameters

| Param        | Type     | Required | Description                      |
| ------------ | -------- | -------- | -------------------------------- |
| `idOrHandle` | `string` | Yes      | Collection handle or Shopify GID |

## Returns

[`ShopifyCollection`](/api/types/collections#shopifycollection) `| null`

## Examples

### Get by handle

```javascript theme={null}
const collection = await openbridge.collections.get('summer-sale')

if (collection) {
    console.log(collection.title)
}
```

### Get by Shopify GID

```javascript theme={null}
const collection = await openbridge.collections.get(
    'gid://shopify/Collection/123456789'
)
```

### With field selection

```javascript theme={null}
const collection = await openbridge.collections
    .get('new-arrivals')
    .select(['title', 'handle', 'image', 'seo'])
```

### Handle not found

```javascript theme={null}
const collection = await openbridge.collections.get('non-existent')

if (!collection) {
    console.log('Collection not found')
}
```
